I'm making my first extension and as part of it I need to add some
functionality to some of the model classes.
I started with the Logic Customisation tutorial and made the first 2
1. Added the decorator to my extension.rb file
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do
c|Rails.configuration.cache_classes ? require(c) : load(c)
2. Created a product_decorator.rb and placed it in
#Empty for now
I fired up rails and received the following error:
rails.rb:46:in 'configuration': undefinied method 'config' for nil:NilClass
I'm guessing this means that Rails.configuration is nil or something.
Has anyone got this working? Are you able to tell me where I went wrong?
Thanks in advance.
You received this message because you are subscribed to the Google Groups "Spree" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spree-user/-/lz7mAdtz2dkJ.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.