aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-10-06 00:25:07 +0000
committerRick Olson <technoweenie@gmail.com>2007-10-06 00:25:07 +0000
commit5b2e8b1eb1731e987faa233dc03e83c221cfcda5 (patch)
tree0eaf4449eee8b31e7e48f9f29068e4fb5ef81c81 /activerecord/lib/active_record/base.rb
parent24c2457a26983c323f0c90d175c00453d853f3b6 (diff)
downloadrails-5b2e8b1eb1731e987faa233dc03e83c221cfcda5.tar.gz
rails-5b2e8b1eb1731e987faa233dc03e83c221cfcda5.tar.bz2
rails-5b2e8b1eb1731e987faa233dc03e83c221cfcda5.zip
Fix that ActiveRecord would create attribute methods and override custom attribute getters if the method is also defined in Kernel.methods. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7749 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index df15457a9a..5e1185065e 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -29,11 +29,14 @@ module ActiveRecord #:nodoc:
end
class StaleObjectError < ActiveRecordError #:nodoc:
end
- class ConfigurationError < StandardError #:nodoc:
+ class ConfigurationError < ActiveRecordError #:nodoc:
end
- class ReadOnlyRecord < StandardError #:nodoc:
+ class ReadOnlyRecord < ActiveRecordError #:nodoc:
end
- class Rollback < StandardError #:nodoc:
+ class Rollback < ActiveRecordError #:nodoc:
+ end
+
+ class DangerousAttributeError < ActiveRecordError #:nodoc:
end
# Raised when you've tried to access a column, which wasn't