…wned by specifying nil to owner_tags_on. I searched the codebase for a while but could not find a way to get both with one call, and didn't want to invoke both methods then merge them in my controller, thus I added this simple functionality So now you can do this to get all tags for a given custom context @thing.owner_tags_on(nil,:custom_context)
…method. I have an ActiveRecord class defined like such: class Athlete < ActiveRecord::Base set_table_name "warehouse.ps_person" acts_as_taggable_on :tags end Athlete.tagged_with("something") creates sql like this: SELECT `warehouse`.`ps_person`.* FROM `warehouse`.`ps_person` JOIN taggings warehouse.ps_person_taggings_something_932 ON warehouse.ps_person_taggings_something_932.taggable_id = warehouse.ps_person.emplid AND warehouse.ps_person_taggings_something_932.taggable_type = 'Athlete' AND warehouse.ps_person_taggings_something_932.tag_id = 2 This fix simply uses the undecorated_table_name instead of the table_name to define the basename of the alias
…ing as taking the conditions and joins from the original scope and applying them to a new scope. Haven't found out how to do that in Rails 3.0 yet :(" This reverts commit 9385e17.
…aking the conditions and joins from the original scope and applying them to a new scope. Haven't found out how to do that in Rails 3.0 yet :(
…y. Tested in PostgreSQL + SQLite as well
Conflicts: Gemfile lib/acts_as_taggable_on/compatibility/Gemfile spec/database.yml.sample
and ordered columns to apear in select statement when using distinct, so we have to use inner queries.
…o it by default