diff options
author | Rick Olson <technoweenie@gmail.com> | 2007-10-06 00:25:07 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2007-10-06 00:25:07 +0000 |
commit | 5b2e8b1eb1731e987faa233dc03e83c221cfcda5 (patch) | |
tree | 0eaf4449eee8b31e7e48f9f29068e4fb5ef81c81 /activerecord/lib/active_record/base.rb | |
parent | 24c2457a26983c323f0c90d175c00453d853f3b6 (diff) | |
download | rails-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-x | activerecord/lib/active_record/base.rb | 9 |
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 |