diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-07-30 00:07:10 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-07-30 17:54:00 -0500 |
commit | 3e58f8e19117346ce459b7531379525d3143608a (patch) | |
tree | a4a882b7dbb5fa79b677bdd1cc77f16e2e929de4 /activerecord/lib/active_record/base.rb | |
parent | e129c5673a99a09ae64759dafbe907aade16cf2b (diff) | |
download | rails-3e58f8e19117346ce459b7531379525d3143608a.tar.gz rails-3e58f8e19117346ce459b7531379525d3143608a.tar.bz2 rails-3e58f8e19117346ce459b7531379525d3143608a.zip |
Restore DangerousAttributeError
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b93dfaf987..7de5bf8a77 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -144,6 +144,10 @@ module ActiveRecord #:nodoc: class Rollback < ActiveRecordError end + # Raised when attribute has a name reserved by Active Record (when attribute has name of one of Active Record instance methods). + class DangerousAttributeError < ActiveRecordError + end + # Raised when you've tried to access a column which wasn't loaded by your finder. # Typically this is because <tt>:select</tt> has been specified. class MissingAttributeError < NoMethodError |