Flowdock
method

sanitize_for_mass_assignment

Importance_0
sanitize_for_mass_assignment(attributes) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/forbidden_attributes_protection.rb, line 19
      def sanitize_for_mass_assignment(attributes)
        if attributes.respond_to?(:permitted?) && !attributes.permitted?
          raise ActiveModel::ForbiddenAttributesError
        else
          attributes
        end
      end
Register or log in to add new notes.