Displaying 1 result from an estimated 1 matches for "calculator_decorator".
2012 Jun 21
2
Rails production load order giving uninitialized constant (NameError)
...e gist of my decorator files: https://gist.github.com/2965034
I''m trying to rescue errors from my Spree calculators. I''m thinking it''s an
issue with the load order, but am not familiar enough to know where to
tweak things.
I''ve tried:
require ''spree/calculator_decorator''
in the checkout_controller_decorator.rb.
and adding:
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do
|c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
per http://guides.spreecommerce.com/logic_customization.html
I''m thin...