#66 ✓resolved
Gilson Ferraz

'config.session_class =' is not working

Reported by Gilson Ferraz | March 24th, 2009 @ 09:12 PM

Tried to use act_as_autheticate with different session_class and I'm getting this error

User class: Usuario

class Usuario < ActiveRecord::Base
  belongs_to :conta
  acts_as_authentic do |c|
    c.session_class = UsuarioAcesso


Session class: UsuarioAcesso

class UsuarioAcesso < Authlogic::Session::Base



NameError: uninitialized constant UsuarioSession .... * from c:/app/ruby/lib/ruby/gems/1.8/gems/authlogic-2.0.2/lib/authlogic/acts_as_authentic/session_maintenance.rb:45:in session_class=' * from C:/Users/Gilson/Documents/aptana/osalim/app/models/usuario.rb:7 * from c:/app/ruby/lib/ruby/gems/1.8/gems/authlogic-2.0.2/lib/authlogic/acts_as_authentic/base.rb:34:inacts_as_authentic' * from C:/Users/Gilson/Documents/aptana/osalim/app/models/usuario.rb:6 ....

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket