├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── gemfiles ├── Gemfile-rails-4.0 ├── Gemfile-rails-4.0-stable ├── Gemfile-rails-4.1 ├── Gemfile-rails-4.1-stable ├── Gemfile-rails-4.2 └── Gemfile-rails-4.2-stable ├── lib ├── action_controller │ └── accessible_params_wrapper.rb ├── active_model │ ├── mass_assignment_security.rb │ └── mass_assignment_security │ │ ├── permission_set.rb │ │ └── sanitizer.rb ├── active_record │ ├── mass_assignment_security.rb │ └── mass_assignment_security │ │ ├── associations.rb │ │ ├── attribute_assignment.rb │ │ ├── core.rb │ │ ├── inheritance.rb │ │ ├── nested_attributes.rb │ │ ├── persistence.rb │ │ ├── reflection.rb │ │ ├── relation.rb │ │ └── validations.rb ├── protected_attributes.rb └── protected_attributes │ ├── railtie.rb │ └── version.rb ├── protected_attributes.gemspec └── test ├── abstract_unit.rb ├── accessible_params_wrapper_test.rb ├── ar_helper.rb ├── attribute_sanitization_test.rb ├── mass_assignment_security ├── black_list_test.rb ├── permission_set_test.rb ├── sanitizer_test.rb ├── strong_parameters_fallback_test.rb └── white_list_test.rb ├── mass_assignment_security_test.rb ├── models ├── battle.rb ├── book.rb ├── company.rb ├── group.rb ├── keyboard.rb ├── mass_assignment_specific.rb ├── membership.rb ├── person.rb ├── pirate.rb ├── subscriber.rb ├── task.rb ├── team.rb ├── vampire.rb └── wolf.rb └── test_helper.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/Rakefile -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.0: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.0 -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.0-stable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.0-stable -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.1 -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.1-stable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.1-stable -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.2 -------------------------------------------------------------------------------- /gemfiles/Gemfile-rails-4.2-stable: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/gemfiles/Gemfile-rails-4.2-stable -------------------------------------------------------------------------------- /lib/action_controller/accessible_params_wrapper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/action_controller/accessible_params_wrapper.rb -------------------------------------------------------------------------------- /lib/active_model/mass_assignment_security.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_model/mass_assignment_security.rb -------------------------------------------------------------------------------- /lib/active_model/mass_assignment_security/permission_set.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_model/mass_assignment_security/permission_set.rb -------------------------------------------------------------------------------- /lib/active_model/mass_assignment_security/sanitizer.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_model/mass_assignment_security/sanitizer.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/associations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/associations.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/attribute_assignment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/attribute_assignment.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/core.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/core.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/inheritance.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/inheritance.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/nested_attributes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/nested_attributes.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/persistence.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/persistence.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/reflection.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/reflection.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/relation.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/relation.rb -------------------------------------------------------------------------------- /lib/active_record/mass_assignment_security/validations.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/active_record/mass_assignment_security/validations.rb -------------------------------------------------------------------------------- /lib/protected_attributes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/protected_attributes.rb -------------------------------------------------------------------------------- /lib/protected_attributes/railtie.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/lib/protected_attributes/railtie.rb -------------------------------------------------------------------------------- /lib/protected_attributes/version.rb: -------------------------------------------------------------------------------- 1 | module ProtectedAttributes 2 | VERSION = "1.1.4" 3 | end 4 | -------------------------------------------------------------------------------- /protected_attributes.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/protected_attributes.gemspec -------------------------------------------------------------------------------- /test/abstract_unit.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/abstract_unit.rb -------------------------------------------------------------------------------- /test/accessible_params_wrapper_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/accessible_params_wrapper_test.rb -------------------------------------------------------------------------------- /test/ar_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/ar_helper.rb -------------------------------------------------------------------------------- /test/attribute_sanitization_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/attribute_sanitization_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security/black_list_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security/black_list_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security/permission_set_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security/permission_set_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security/sanitizer_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security/sanitizer_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security/strong_parameters_fallback_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security/strong_parameters_fallback_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security/white_list_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security/white_list_test.rb -------------------------------------------------------------------------------- /test/mass_assignment_security_test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/mass_assignment_security_test.rb -------------------------------------------------------------------------------- /test/models/battle.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/battle.rb -------------------------------------------------------------------------------- /test/models/book.rb: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /test/models/company.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/company.rb -------------------------------------------------------------------------------- /test/models/group.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/group.rb -------------------------------------------------------------------------------- /test/models/keyboard.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/keyboard.rb -------------------------------------------------------------------------------- /test/models/mass_assignment_specific.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/mass_assignment_specific.rb -------------------------------------------------------------------------------- /test/models/membership.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/membership.rb -------------------------------------------------------------------------------- /test/models/person.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/person.rb -------------------------------------------------------------------------------- /test/models/pirate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/pirate.rb -------------------------------------------------------------------------------- /test/models/subscriber.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/subscriber.rb -------------------------------------------------------------------------------- /test/models/task.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/task.rb -------------------------------------------------------------------------------- /test/models/team.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/team.rb -------------------------------------------------------------------------------- /test/models/vampire.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/vampire.rb -------------------------------------------------------------------------------- /test/models/wolf.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/models/wolf.rb -------------------------------------------------------------------------------- /test/test_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rails/protected_attributes/HEAD/test/test_helper.rb --------------------------------------------------------------------------------