aboutsummaryrefslogblamecommitdiffstats
path: root/activemodel/lib/active_model/deprecated_mass_assignment_security.rb
blob: 1f409c87b95d9dc79deb22abecb4ee2ee4e6d15a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                  
                                                   

                                 

                                  
                                                                          


                                                                         

          
                                 
                                                                           


                                                                         



          
module ActiveModel
  module DeprecatedMassAssignmentSecurity # :nodoc:
    extend ActiveSupport::Concern

     module ClassMethods # :nodoc:
       def attr_protected(*args)
         raise "`attr_protected` is extracted out of Rails into a gem. " \
           "Please use new recommended protection model for params" \
           "(strong_parameters) or add `protected_attributes` to your " \
           "Gemfile to use old one."
       end

       def attr_accessible(*args)
         raise "`attr_accessible` is extracted out of Rails into a gem. " \
           "Please use new recommended protection model for params" \
           "(strong_parameters) or add `protected_attributes` to your " \
           "Gemfile to use old one."
       end
     end
  end
end