diff options
author | Lauro Caetano <laurocaetano1@gmail.com> | 2014-04-09 14:39:08 -0300 |
---|---|---|
committer | Lauro Caetano <laurocaetano1@gmail.com> | 2014-04-09 14:57:30 -0300 |
commit | a91e5ff2cbf2f8971ad0d2a80b2e22e63b1900f6 (patch) | |
tree | d7b151680d6533259e8bc6dfc2e25a2f732fcd66 /activerecord/test/models | |
parent | 7b75b678cf11a1aed7927a9db42fb60a38726450 (diff) | |
download | rails-a91e5ff2cbf2f8971ad0d2a80b2e22e63b1900f6.tar.gz rails-a91e5ff2cbf2f8971ad0d2a80b2e22e63b1900f6.tar.bz2 rails-a91e5ff2cbf2f8971ad0d2a80b2e22e63b1900f6.zip |
The `source` option for `has_many => through` should accept String
values.
With the changes introduced by 16b70fddd4dc7e7fb7be108add88bae6e3c2509b
it was expecting the value to be a Symbol, while it could be also a
String value.
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/tag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/tag.rb b/activerecord/test/models/tag.rb index a581b381e8..80d4725f7e 100644 --- a/activerecord/test/models/tag.rb +++ b/activerecord/test/models/tag.rb @@ -3,5 +3,5 @@ class Tag < ActiveRecord::Base has_many :taggables, :through => :taggings has_one :tagging - has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post' -end
\ No newline at end of file + has_many :tagged_posts, :through => :taggings, :source => 'taggable', :source_type => 'Post' +end |