Permalink
Browse files

Merge pull request #1111 from enmasse-entertainment/fix-load-decorato…

…rs-initializer

variable name incorrect causing undefined method
  • Loading branch information...
2 parents ef3b990 + b546a60 commit 13b11452c439a22b8fa96c053264092424713b5e @parndt parndt committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/lib/refinery/core/engine.rb
View
2 core/lib/refinery/core/engine.rb
@@ -14,7 +14,7 @@ class << self
def load_decorators
[Rails.root, Refinery::Plugins.registered.pathnames].flatten.map { |p|
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)
end
end

0 comments on commit 13b1145

Please sign in to comment.