Sha256: 81345636201356be93df10ef1bffb8cf866f597e6b8a699ed8d278e5cf8540f2

Contents?: true

Size: 325 Bytes

Versions: 21

Compression:

Stored size: 325 Bytes

Contents

module ActiveRecord
  module Acts
    module TaggableOn
      module GroupHelper
        # all column names are necessary for PostgreSQL group clause
        def grouped_column_names_for(object)
          object.column_names.map { |column| "#{object.table_name}.#{column}" }.join(", ")
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
acts-as-taggable-on-1.1.9 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.8 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.7 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.6 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.5 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.4 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.3 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.2 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.1 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.1.0 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.19 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.18 lib/acts_as_taggable_on/group_helper.rb
bbenezech-acts-as-taggable-on-0.0.4 lib/acts_as_taggable_on/group_helper.rb
bbenezech-acts-as-taggable-on-0.0.3 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.17 lib/acts_as_taggable_on/group_helper.rb
bbenezech-acts-as-taggable-on-0.0.2 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.16 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.15 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.14 lib/acts_as_taggable_on/group_helper.rb
acts-as-taggable-on-1.0.13 lib/acts_as_taggable_on/group_helper.rb