Module: ActiveRecord::Acts::Taxonomy::GroupHelper
- Included in:
- InstanceMethods, SingletonMethods
- Defined in:
- lib/taxonomy/group_helper.rb
Instance Method Summary collapse
-
#grouped_column_names_for(object) ⇒ Object
all column names are necessary for PostgreSQL group clause.
Instance Method Details
#grouped_column_names_for(object) ⇒ Object
all column names are necessary for PostgreSQL group clause
6 7 8 |
# File 'lib/taxonomy/group_helper.rb', line 6 def grouped_column_names_for(object) object.column_names.map { |column| "#{object.table_name}.#{column}" }.join(", ") end |