Module: FreezeTag::ClassMethods

Defined in:
lib/freezetag.rb

Instance Method Summary collapse

Instance Method Details

#autocomplete(attribute) ⇒ Object



21
22
23
24
25
# File 'lib/freezetag.rb', line 21

def autocomplete(attribute)
  self.freezetag_attribute = attribute
  after_save :freezetag_index_record
  before_destroy :freezetag_deindex_record
end