Module: Riveter::Enumerated::ClassMethods

Defined in:
lib/riveter/enumerated.rb

Instance Method Summary collapse

Instance Method Details

#human(options = {}) ⇒ Object



72
73
74
75
76
77
78
79
# File 'lib/riveter/enumerated.rb', line 72

def human(options={})
  options = {
    :scope => [:enums, self.to_s.underscore],
    :default => self.name.titleize
  }.merge!(options)

  I18n.translate(:human, options)
end