Rails lib includes -
i have puzzling issue regarding modules defined in lib dir
i have 2 files
#lib/authentication.rb module authentication end #lib/test_module.rb module testmodule end
in application controller have
class applicationcontroller < actioncontroller::base include authentication include testmodule end
the authentication module loads testmodule not
i "uninitialized constant applicationcontroller::testmodule"
i stumped... anyone?
edit: know debug this?
adding require 'lib/test_module'
@ top of applicationcontroller file might help
ruby-on-rails include
No comments:
Post a Comment