Module: Authlogic::Session::ActiveRecordTrickery::ClassMethods
- Defined in:
- lib/authlogic/session/active_record_trickery.rb
Instance Method Summary collapse
-
#human_name ⇒ Object
How to name the class, works JUST LIKE ActiveRecord, except it uses the following namespace:.
- #i18n_scope ⇒ Object
Instance Method Details
#human_name ⇒ Object
How to name the class, works JUST LIKE ActiveRecord, except it uses the following namespace:
authlogic.models.user_session
30 31 32 |
# File 'lib/authlogic/session/active_record_trickery.rb', line 30 def human_name(*) I18n.t("models.#{name.underscore}", count: 1, default: name.humanize) end |