Module: PhatPgsearch::ActiveRecord::InstanceMethods

Defined in:
lib/phat_pgsearch/active_record.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#rebuild_pgindex!Object

rebuild pgindex für object without update timestamps



98
99
100
101
102
103
104
# File 'lib/phat_pgsearch/active_record.rb', line 98

def rebuild_pgindex!
  last_state = self.class.record_timestamps
  self.class.record_timestamps = false
  self.build_pgsearch_index
  self.save!
  self.class.record_timestamps = last_state
end