On branch strong-params

Your branch is behind 'origin/strong-params' by 1 commit, and can be fast-forwarded.

I'll pull to catch up after this commit
Change code to whitelist params
Remove attr_accessible lines
Add strong_params to Gemfile, since this branch is still on Rails 3
Mixin to ActiveRecord::Base ActiveModel::ForbiddenAttributesProtection
Use an initializer for the mixin
This commit is contained in:
Fred Nixon
2014-12-05 15:04:01 -05:00
parent b4a1ad46c4
commit ea8e9901f4
19 changed files with 65 additions and 179 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
#don't upgrade
gem 'rails', '3.2.20'
gem 'rails', '3.2.21'
ruby '2.1.5'
@@ -56,6 +56,9 @@ end
gem 'jquery-rails'
## strong parameters in Rails 3 (see rails gem above)
gem 'strong_parameters'
# To use ActiveModel has_secure_password
gem 'bcrypt'