Module: DecoLite::ModelNameable::ClassMethods
- Defined in:
- lib/deco_lite/model_nameable.rb
Overview
Class methods to extend.
Instance Method Summary collapse
Instance Method Details
#model_name ⇒ Object
14 15 16 |
# File 'lib/deco_lite/model_nameable.rb', line 14 def model_name ActiveModel::Name.new(self, nil, to_s.gsub('::', '')) end |