1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

2 commits

Author SHA1 Message Date
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
Kassio Borges
8f6e5986ac Fix how to compute class name on habtm namespaced.
Thank's for @laurocaetano for the help with tests. 😃

Fixes #14709
2014-05-13 11:26:46 -03:00