Module: ActsAsTaggableHstore::Taggable

Defined in:
lib/acts_as_taggable_hstore/taggable.rb,
lib/acts_as_taggable_hstore/acts_as_taggable_hstore/core.rb

Defined Under Namespace

Modules: Core

Instance Method Summary collapse

Instance Method Details

#acts_as_taggable_hstoreObject



6
7
8
# File 'lib/acts_as_taggable_hstore/taggable.rb', line 6

def acts_as_taggable_hstore
  acts_as_taggable_hstore_by ActsAsTaggableHstore.default_column
end

#acts_as_taggable_hstore_by(*column_name) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/acts_as_taggable_hstore/taggable.rb', line 10

def acts_as_taggable_hstore_by(*column_name)

  class_attribute :tag_hstore_column
  self.tag_hstore_column = column_name.first

  class_eval do
    def self.taggable?
      true
    end
    include ActsAsTaggableHstore::Taggable::Core
  end
end

#taggable?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/acts_as_taggable_hstore/taggable.rb', line 3

def taggable?
  false
end