Commit 64f32ec1460e19159867b47d212f8a3f115502ff

Authored by Leandro Nunes dos Santos
1 parent 260f0d79

do not set macros if there is no environment

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/noosfero/plugin/manager.rb
... ... @@ -6,7 +6,7 @@ class Noosfero::Plugin::Manager
6 6 def initialize(environment, context)
7 7 @environment = environment
8 8 @context = context
9   - Environment.macros = {environment.id => {}}
  9 + Environment.macros = {environment.id => {}} unless environment.nil?
10 10 end
11 11  
12 12 delegate :each, :to => :enabled_plugins
... ...