Method: Effective::Resources::I18n#human_name
- Defined in:
- app/models/effective/resources/i18n.rb
#human_name ⇒ Object
33 34 35 36 37 38 39 |
# File 'app/models/effective/resources/i18n.rb', line 33 def human_name if klass.respond_to?(:model_name) klass.model_name.human else name.gsub('::', ' ').underscore.gsub('_', ' ') end end |