Module: Hyrax::HumanReadableType::ClassMethods

Defined in:
app/models/concerns/hyrax/human_readable_type.rb

Instance Method Summary collapse

Instance Method Details

#human_readable_typeObject



7
8
9
# File 'app/models/concerns/hyrax/human_readable_type.rb', line 7

def human_readable_type
  I18n.translate("activefedora.models.#{model_name.i18n_key}", default: name.demodulize.titleize)
end