This project is archived and is in readonly mode.
Controller breaks when an action is named 'config'
-
Neeraj Singh
- State changed from new to invalid
- Importance changed from to Low
abstract_controller/base.rb has following line
require 'active_support/configurable'configurable provides a method called config which allows one to do things like
# require 'active_support/configurable' # # class User # include ActiveSupport::Configurable # end # # user = User.new # # user.config.allowed_access = true # user.config.level = 1 # # user.config.allowed_access # => true # user.config.level # => 1Since abstract_controller includes that module a config method is automatically created. If you have an action named 'config' then that would overrite this config and that's not good.
Yes it should be documented.
