aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-06-17 20:19:21 -0500
committerJoshua Peek <josh@joshpeek.com>2009-06-17 21:27:54 -0500
commitd5d59230f4d8f0457fc793446a3dbcdce0057a78 (patch)
treee3a6ce7cd8ca3f7583fd62b284485d0752477c60 /activerecord/lib
parentb4a91db441fa9583df24fb8d3cf0d6906e8359db (diff)
downloadrails-d5d59230f4d8f0457fc793446a3dbcdce0057a78.tar.gz
rails-d5d59230f4d8f0457fc793446a3dbcdce0057a78.tar.bz2
rails-d5d59230f4d8f0457fc793446a3dbcdce0057a78.zip
Simplify AMo validation attribute reader
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/validations.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/validations.rb b/activerecord/lib/active_record/validations.rb
index a150ba4acf..7ac6f6fe3b 100644
--- a/activerecord/lib/active_record/validations.rb
+++ b/activerecord/lib/active_record/validations.rb
@@ -194,10 +194,6 @@ module ActiveRecord
def errors
@errors ||= Errors.new(self)
end
-
- def get_attribute_value(attribute)
- respond_to?(attribute.to_sym) ? send(attribute.to_sym) : self[attribute.to_sym]
- end
end
end
end