Commit 9ef0f97b91cc9b8e3fcdec5df4ddfbf9ab2386db

Authored by Rodrigo Souto
Committed by Daniela Feitosa
1 parent 42c95162

Signing plugin to hot spots

(ActionItem1996)
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
lib/noosfero/plugin.rb
... ... @@ -31,12 +31,6 @@ class Noosfero::Plugin
31 31 all << subclass.to_s unless all.include?(subclass.to_s)
32 32 end
33 33  
34   - # Here the developer should specify the meta-informations that the plugin can
35   - # inform.
36   - def plugin_name
37   - self.name.underscore.humanize
38   - end
39   -
40 34 def public_name
41 35 self.name.underscore.gsub('_plugin','')
42 36 end
... ... @@ -45,6 +39,12 @@ class Noosfero::Plugin
45 39 compute_public_path((public_name + '/' + file), 'plugins')
46 40 end
47 41  
  42 +
  43 + # Here the developer should specify the meta-informations that the plugin can
  44 + # inform.
  45 + def plugin_name
  46 + self.name.underscore.humanize
  47 + end
48 48 def plugin_description
49 49 _("No description informed.")
50 50 end
... ...