mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
rm dead code
This commit is contained in:
parent
fd16cb3f59
commit
72f5085404
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ module ActiveModel
|
|||
|
||||
module ForbiddenAttributesProtection # :nodoc:
|
||||
protected
|
||||
def sanitize_for_mass_assignment(attributes, options = {})
|
||||
def sanitize_for_mass_assignment(attributes)
|
||||
if attributes.respond_to?(:permitted?) && !attributes.permitted?
|
||||
raise ActiveModel::ForbiddenAttributesError
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue