Sha256: 5b0ae2289e33415a90543b24e498d97f9ce04670b4b10d21a350938e5769d705

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

ActsAsTaggableOn.remove_unused_tags = true
ActsAsTaggableOn::Tag.send(:include, Elasticsearch::Model)
ActsAsTaggableOn::Tag.send(:include, Elasticsearch::Model::Callbacks)
ActsAsTaggableOn::Tag.class_eval do
  def self.policy_class
    Georgia::ApiPolicy
  end
end
ActsAsTaggableOn::Tagging.class_eval do
  after_save :touch_taggable
  def touch_taggable
    taggable.touch if taggable.present?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 config/initializers/acts_as_taggable_on.rb