module SmoothOperator::Translation

Public Instance Methods

human_attribute_name(attribute_key_name, options = {}) click to toggle source
# File lib/smooth_operator/translation.rb, line 4
def human_attribute_name(attribute_key_name, options = {})
  HelperMethods.translate(
    "attributes.#{model_name.i18n_key}.#{attribute_key_name}",
    options
  )
end