Module: SmoothOperator::Translation

Included in:
Base
Defined in:
lib/smooth_operator/translation.rb

Defined Under Namespace

Modules: HelperMethods

Instance Method Summary collapse

Instance Method Details

#human_attribute_name(attribute_key_name, options = {}) ⇒ Object



4
5
6
7
8
9
# 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