Have you added lib to your autoload path? This was necessary in Rails 3, I’m not sure if it’s still required for Rails 4.
Try adding this into the class definition in config/application.rb
–
config.autoload_paths += %W(#{config.root}/lib)
Have you added lib to your autoload path? This was necessary in Rails 3, I’m not sure if it’s still required for Rails 4.
Try adding this into the class definition in config/application.rb
–
config.autoload_paths += %W(#{config.root}/lib)