1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/models/publisher/article.rb
Rafael Mendonça França 76d6ec2a9a Fix has_and_belongs_to_many in a namespaced model pointing to a non namespaced model
Now the following case will work fine

    class Tag < ActiveRecord::Base
    end

    class Publisher::Article < ActiveRecord::Base
      has_and_belongs_to_many :tags
    end

Fixes #15761
2014-06-19 14:59:48 -03:00

4 lines
119 B
Ruby

class Publisher::Article < ActiveRecord::Base
has_and_belongs_to_many :magazines
has_and_belongs_to_many :tags
end