aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-07-30 00:07:10 -0500
committerJoshua Peek <josh@joshpeek.com>2009-07-30 17:54:00 -0500
commit3e58f8e19117346ce459b7531379525d3143608a (patch)
treea4a882b7dbb5fa79b677bdd1cc77f16e2e929de4 /activerecord/lib/active_record/base.rb
parente129c5673a99a09ae64759dafbe907aade16cf2b (diff)
downloadrails-3e58f8e19117346ce459b7531379525d3143608a.tar.gz
rails-3e58f8e19117346ce459b7531379525d3143608a.tar.bz2
rails-3e58f8e19117346ce459b7531379525d3143608a.zip
Restore DangerousAttributeError
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
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