Module: Ion::Entity::ClassMethods
- Defined in:
- lib/ion/entity.rb
Instance Method Summary collapse
-
#ion(&blk) ⇒ Object
Sets up Ion indexing for a model.
Instance Method Details
#ion(&blk) ⇒ Object
Sets up Ion indexing for a model.
When no block is given, it returns the Ion::Options for the model.
42 43 44 45 46 |
# File 'lib/ion/entity.rb', line 42 def ion(&blk) ||= Ion::Options.new(self) .instance_eval(&blk) if block_given? end |