aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/topic.rb
diff options
context:
space:
mode:
authorAlvaro Bautista <alvarobp@gmail.com>2011-12-21 01:10:17 +0100
committerJon Leighton <j@jonathanleighton.com>2011-12-23 18:19:25 +0000
commit30ce084bbfbdc4ba877349af4964445cf16295ce (patch)
tree4f7c00882c322e31cb3a855744bbf79e36d06ae1 /activerecord/test/models/topic.rb
parenta64ab959874681817c105f4cc6ce8b90b8bde545 (diff)
downloadrails-30ce084bbfbdc4ba877349af4964445cf16295ce.tar.gz
rails-30ce084bbfbdc4ba877349af4964445cf16295ce.tar.bz2
rails-30ce084bbfbdc4ba877349af4964445cf16295ce.zip
serialize fails on subclass
Diffstat (limited to 'activerecord/test/models/topic.rb')
-rw-r--r--activerecord/test/models/topic.rb4
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'