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