"Disabling sessions for a single controller has been deprecated. "+
"Sessions are now lazy loaded. So if you don't access them, "+
"consider them off. You can still modify the session cookie "+
"options with request.session_options.",caller)
end
defsession=(value)
ActiveSupport::Deprecation.warn"ActionController::Base.session= is deprecated. "<<
"Please configure it on your application with config.session_store :cookie_store, :key => '....'",caller
ifvalue.delete(:disabled)
Rails.application.config.session_store:disabled
else
store=Rails.application.config.session_store
Rails.application.config.session_storestore,value
end
end
# Controls the resource action separator
defresource_action_separator
@resource_action_separator||="/"
end
defresource_action_separator=(val)
ActiveSupport::Deprecation.warn"ActionController::Base.resource_action_separator is deprecated and only "\
"works with the deprecated router DSL."
@resource_action_separator=val
end
defuse_accept_header
ActiveSupport::Deprecation.warn"ActionController::Base.use_accept_header doesn't do anything anymore. "\
"The accept header is always taken into account."
end
defuse_accept_header=(val)
use_accept_header
end
# This method has been moved to ActionDispatch::Request.filter_parameters
deffilter_parameter_logging(*args,&block)
ActiveSupport::Deprecation.warn("Setting filter_parameter_logging in ActionController is deprecated and has no longer effect, please set 'config.filter_parameters' in config/application.rb instead",caller)
filter=Rails.application.config.filter_parameters
filter.concat(args)
filter<<blockifblock
filter
end
# This was moved to a plugin
defverify(*args)
ActiveSupport::Deprecation.warn"verify was removed from Rails and is now available as a plugin. "<<
"Please install it with `rails plugin install git://github.com/rails/verification.git`.",caller