mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.96k stars 1.2k forks source link

Parent model is not retrieving tags Object doesn't support #inspect #991

Open jesusdp opened 4 years ago

jesusdp commented 4 years ago

With Rails 4.1 was working fine but once we migrated to Rails 5.1 is not working properly. Any thoughts?

2.4.5 :001 > project = Project.last Project Load (0.4ms) SELECT projects. FROM projects WHERE (projects.deleted_at is null) ORDER BY projects.id DESC LIMIT 1 => #<Project id: ...> 2.4.5 :002 > project.tags ActsAsTaggableOn::Tag Load (41.6ms) SELECT tags. FROM tags (Object doesn't support #inspect) =>
2.4.5 :003 >

project.rb has_many :tags, -> { uniq }, :through => :project_products

project_product.rb acts_as_taggable