diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:46:40 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-04-01 06:46:40 +0000 |
commit | ba8e0a846f0e5ee84a16a5e128106883f6d10b71 (patch) | |
tree | 40190ba87808b0af4e3f6359ac713d85d9cf0592 /activerecord/test/models | |
parent | c3df9bfad2b7e560fcf8c5fb4b5ddc086d83a634 (diff) | |
download | rails-ba8e0a846f0e5ee84a16a5e128106883f6d10b71.tar.gz rails-ba8e0a846f0e5ee84a16a5e128106883f6d10b71.tar.bz2 rails-ba8e0a846f0e5ee84a16a5e128106883f6d10b71.zip |
Ruby 1.9 compat: work around YAML serialization error exposed by validations tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/models')
-rwxr-xr-x | activerecord/test/models/topic.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb index 0ef7be97d3..d2503b78df 100755 --- a/activerecord/test/models/topic.rb +++ b/activerecord/test/models/topic.rb @@ -26,7 +26,7 @@ class Topic < ActiveRecord::Base end named_scope :named_extension, :extend => NamedExtension named_scope :multiple_extensions, :extend => [MultipleExtensionTwo, MultipleExtensionOne] - + has_many :replies, :dependent => :destroy, :foreign_key => "parent_id" serialize :content @@ -42,7 +42,6 @@ class Topic < ActiveRecord::Base id end - protected def approved=(val) @custom_approved = val @@ -62,4 +61,4 @@ class Topic < ActiveRecord::Base self.author_email_address = 'test@test.com' end end -end
\ No newline at end of file +end |