aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2010-07-08 19:50:41 +0200
committerJosé Valim <jose.valim@gmail.com>2010-07-08 22:29:08 +0200
commitb09fd9ccbbe988e6edaf244d304458ad9d476c31 (patch)
treedaef00a2518b13727fd994e006c904b43c9a36fe /activerecord/lib/active_record
parenta4f5f0547f205c6dbf264e8dadeb18492d5271ba (diff)
downloadrails-b09fd9ccbbe988e6edaf244d304458ad9d476c31.tar.gz
rails-b09fd9ccbbe988e6edaf244d304458ad9d476c31.tar.bz2
rails-b09fd9ccbbe988e6edaf244d304458ad9d476c31.zip
removed an old unused method in AR which removed readonly attributes
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/base.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 573220f460..cb74a01388 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1615,15 +1615,6 @@ MSG
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 ]