discourse/spec/controllers/admin
Ian Christian Myers 0d01c33482 Enabled strong_parameters across all models/controllers.
All models are now using ActiveModel::ForbiddenAttributesProtection, which shifts the responsibility for parameter whitelisting for mass-assignments from the model to the controller. attr_accessible has been disabled and removed as this functionality replaces that.

The require_parameters method in the ApplicationController has been removed in favor of strong_parameters' #require method.

It is important to note that there is still some refactoring required to get all parameters to pass through #require and #permit so that we can guarantee that parameter values are scalar. Currently strong_parameters, in most cases, is only being utilized to require parameters and to whitelist the few places that do mass-assignments.
2013-06-06 00:30:59 -07:00
..
admin_controller_spec.rb Initial release of Discourse 2013-02-05 14:16:51 -05:00
dashboard_controller_spec.rb Fetch the list of problems more frequently on the admin dashboard 2013-03-29 15:48:26 -04:00
email_controller_spec.rb Better HTML emails, smarter email digests, new email section in admin with digest preview 2013-06-05 17:47:25 -04:00
export_controller_spec.rb remove trailing whitespaces ❤️ 2013-02-26 07:31:35 +03:00
flags_controller_spec.rb introduce Enum 2013-03-01 21:16:36 +03:00
groups_controller_spec.rb group progress, never email banned users 2013-05-09 11:34:58 +10:00
impersonate_controller_spec.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
reports_controller_spec.rb Code to support EmberJS + Discourse Tutorial feature: Admin Reports 2013-02-27 22:40:36 -05:00
site_content_types_controller_spec.rb Work in Progress: Content Editing in Admin Section 2013-04-04 17:26:22 -04:00
site_contents_controller_spec.rb Work in Progress: Content Editing in Admin Section 2013-04-04 17:26:22 -04:00
site_customizations_controller_spec.rb added test condition that fails with latest AM serializer 2013-05-28 10:42:04 +10:00
site_settings_controller_spec.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
users_controller_spec.rb Automatically flag someone as a spammer if their posts get at least X spam flags from N users while their trust level is 'new user'. Staff can clear and set this status from the user record in admin. 2013-06-03 16:37:40 -04:00
versions_controller_spec.rb Fix check if you're up to date in javascript 2013-03-06 10:34:29 -05:00