Method: Chewy::Index::Adapter::Object#name
- Defined in:
- lib/chewy/index/adapter/object.rb
#name ⇒ String
Inferred from the target by default if possible.
43 44 45 |
# File 'lib/chewy/index/adapter/object.rb', line 43 def name @name ||= ([:name] || @target).to_s.camelize.demodulize end |