module ActsAsMoonable::Humanable

Public Instance Methods

human_enum_name(enum_name) click to toggle source
# File lib/acts_as_moonable/humanable.rb, line 33
def human_enum_name enum_name
  enum_value = self.public_send enum_name
  self.class.human_enum_name enum_name, enum_value
end
i18n_attribute_name(attr) click to toggle source
# File lib/acts_as_moonable/humanable.rb, line 29
def i18n_attribute_name attr
  self.class.i18n_attribute_name attr
end