diff options
author | Nikita Afanasenko <nafanasenko@spbtv.com> | 2012-11-13 18:39:07 +0400 |
---|---|---|
committer | Nikita Afanasenko <nafanasenko@spbtv.com> | 2012-11-13 18:39:07 +0400 |
commit | 8424d0dda3a991b735365e993d907827a1913480 (patch) | |
tree | d61c49b77467a37143711371894f89b5883bfb89 /activerecord/test/models | |
parent | 8f3f50a3cca98a322083269562d446498825ad5f (diff) | |
download | rails-8424d0dda3a991b735365e993d907827a1913480.tar.gz rails-8424d0dda3a991b735365e993d907827a1913480.tar.bz2 rails-8424d0dda3a991b735365e993d907827a1913480.zip |
Regression test for #7238
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/topic.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index ab31d85e46..f7f4cebc5a 100644 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -107,6 +107,12 @@ class ImportantTopic < Topic serialize :important, Hash end +class BlankTopic < Topic + def blank? + true + end +end + module Web class Topic < ActiveRecord::Base has_many :replies, :dependent => :destroy, :foreign_key => "parent_id", :class_name => 'Web::Reply' |