Module: ActiveModelBehavior::InstanceMethods
- Defined in:
- lib/redis_orm/active_model_behavior.rb
Instance Method Summary collapse
Instance Method Details
#model_name ⇒ Object
9 10 11 |
# File 'lib/redis_orm/active_model_behavior.rb', line 9 def model_name @_model_name ||= ActiveModel::Name.new(self.class).to_s.tableize.singularize end |