Skip to content

Commit

Permalink
Merge pull request refinery#1111 from enmasse-entertainment/fix-load-…
Browse files Browse the repository at this point in the history
…decorators-initializer

variable name incorrect causing undefined method
  • Loading branch information
parndt committed Oct 28, 2011
2 parents ef3b990 + b546a60 commit 13b1145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/core/engine.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class << self
def load_decorators def load_decorators
[Rails.root, Refinery::Plugins.registered.pathnames].flatten.map { |p| [Rails.root, Refinery::Plugins.registered.pathnames].flatten.map { |p|
Dir[p.join('app', 'decorators', '**', '*_decorator.rb')] Dir[p.join('app', 'decorators', '**', '*_decorator.rb')]
}.flatten.uniq.each do |decorators| }.flatten.uniq.each do |decorator|
Rails.application.config.cache_classes ? require(decorator) : load(decorator) Rails.application.config.cache_classes ? require(decorator) : load(decorator)
end end
end end
Expand Down

0 comments on commit 13b1145

Please sign in to comment.