Skip to content
Browse files

removed an old unused method in AR which removed readonly attributes

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
1 parent a4f5f05 commit b09fd9ccbbe988e6edaf244d304458ad9d476c31 @joshk joshk committed with josevalim
Showing with 0 additions and 9 deletions.
  1. +0 −9 activerecord/lib/active_record/base.rb
View
9 activerecord/lib/active_record/base.rb
@@ -1615,15 +1615,6 @@ def ensure_proper_type
end
end
- # Removes attributes which have been marked as readonly.
- def remove_readonly_attributes(attributes)
- unless self.class.readonly_attributes.nil?
- attributes.delete_if { |key, value| self.class.readonly_attributes.include?(key.gsub(/\(.+/,"")) }
- else
- attributes
- end
- end
-
# The primary key and inheritance column can never be set by mass-assignment for security reasons.
def self.attributes_protected_by_default
default = [ primary_key, inheritance_column ]

0 comments on commit b09fd9c

Please sign in to comment.
Something went wrong with that request. Please try again.