class HumanAttributes::Formatters::Boolean

Public Instance Methods

apply(_instance, value) click to toggle source
# File lib/human_attributes/formatters/boolean.rb, line 4
def apply(_instance, value)
  key = !!value ? "positive" : "negative"
  I18n.t("boolean.#{key}")
end