Skip to content

Commit

Permalink
Deface: don't manually require override files
Browse files Browse the repository at this point in the history
as this can cause problems for precompiling
  • Loading branch information
alepore committed Nov 21, 2015
1 parent 8fde0b6 commit d59b21a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree_print_invoice/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Engine < Rails::Engine

class << self
def activate
cache_klasses = %W(#{config.root}/app/**/*_decorator*.rb #{config.root}/app/overrides/*.rb)
cache_klasses = %W(#{config.root}/app/**/*_decorator*.rb)
Dir.glob(cache_klasses) do |klass|
Rails.configuration.cache_classes ? require(klass) : load(klass)
end
Expand Down

0 comments on commit d59b21a

Please sign in to comment.