module Cased::Model::ClassMethods
Public Instance Methods
cased_category()
click to toggle source
Establishes a default `cased_category` that matches nicely to the class name. The default instance level `cased_category` uses this.
@return [Symbol]
# File lib/cased/model.rb, line 17 def cased_category @cased_category ||= begin category = ActiveSupport::Inflector.underscore(name) category.to_sym end end