Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit fixes a bug seen when using the tagged_with("something") …
…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
- Loading branch information