Browse Source

Load decorators from correct dir, now that engine code was moved.

tags/0.1.0^2
Bèr Kessels 8 years ago
parent
commit
002d5453f0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/spree_omnikassa.rb

+ 1
- 1
lib/spree_omnikassa.rb View File

@@ -12,7 +12,7 @@ module SpreeOmnikassa
end

def self.activate
Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c|
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end

Loading…
Cancel
Save