Module: Authlogic::Session::ActiveRecordTrickery::ClassMethods

Defined in:
lib/authlogic/session/active_record_trickery.rb

Instance Method Summary collapse

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

#i18n_scopeObject



31
32
33
# File 'lib/authlogic/session/active_record_trickery.rb', line 31

def i18n_scope
  I18n.scope
end