Method: Sohm::Model.index
- Defined in:
- lib/sohm.rb
.index(attribute) ⇒ Object
Index any method on your model. Once you index a method, you can use it in ‘find` statements.
638 639 640 |
# File 'lib/sohm.rb', line 638 def self.index(attribute) indices << attribute unless indices.include?(attribute) end |