Module: ActiveModelBehavior::ClassMethods

Defined in:
lib/redis_orm/active_model_behavior.rb

Instance Method Summary collapse

Instance Method Details

#model_nameObject



3
4
5
# File 'lib/redis_orm/active_model_behavior.rb', line 3

def model_name
  @_model_name ||= ActiveModel::Name.new(self).to_s.tableize.singularize
end