Module: ActiveBlur::Searchable::InstanceMethods
- Defined in:
- lib/active_blur/searchable.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
:nodoc:
84 85 86 87 88 89 90 |
# File 'lib/active_blur/searchable.rb', line 84 def self.included(base) #:nodoc: base.module_eval do alias_method :index, :blur_index unless method_defined? :index alias_method :remove_from_index, :blur_remove_from_index unless method_defined? :remove_from_index alias_method :score, :blur_score unless method_defined? :score end end |
Instance Method Details
#blur_index ⇒ Object
92 93 94 |
# File 'lib/active_blur/searchable.rb', line 92 def blur_index ActiveBlur.index(self) end |
#blur_remove_from_index ⇒ Object
96 97 98 |
# File 'lib/active_blur/searchable.rb', line 96 def blur_remove_from_index ActiveBlur.remove(self) end |
#blur_score ⇒ Object
100 101 102 |
# File 'lib/active_blur/searchable.rb', line 100 def blur_score @blur_score end |