diff options
author | Alvaro Bautista <alvarobp@gmail.com> | 2011-12-21 01:10:17 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-23 18:22:42 +0000 |
commit | 6b9ab88a48c9625737a5603a0ac5dc60c25a88d9 (patch) | |
tree | f8912110027464b4dfe483890b6822fea281f1c8 /activerecord/test/models | |
parent | 824334c15c21de6768eda64053135bc46f2a67bb (diff) | |
download | rails-6b9ab88a48c9625737a5603a0ac5dc60c25a88d9.tar.gz rails-6b9ab88a48c9625737a5603a0ac5dc60c25a88d9.tar.bz2 rails-6b9ab88a48c9625737a5603a0ac5dc60c25a88d9.zip |
serialize fails on subclass
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/topic.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index ede662450e..1a1a18166a 100644 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -108,6 +108,10 @@ class Topic < ActiveRecord::Base def after_create_for_transaction; end end +class ImportantTopic < Topic + serialize :important, Hash +end + module Web class Topic < ActiveRecord::Base has_many :replies, :dependent => :destroy, :foreign_key => "parent_id", :class_name => 'Web::Reply' |