module EnumeratedType
Public Instance Methods
human()
click to toggle source
# File lib/active_record_enumerated_type/enumerated_type.rb, line 8 def human I18n.translate!(name, scope: [:enumerated_type, self.class.name.underscore]) rescue I18n::MissingTranslationData to_s.titleize end
Also aliased as: to_label
serialize()
click to toggle source
# File lib/active_record_enumerated_type/enumerated_type.rb, line 4 def serialize name end