Sha256: b70161b3d2e7ac369b7ca318b02325f3e06e81038cf682982e6b71b11f1f8c07

Contents?: true

Size: 521 Bytes

Versions: 22

Compression:

Stored size: 521 Bytes

Contents

module Authlogic
  module Session
    class Errors < ::ActiveRecord::Errors # :nodoc:
    end
    
    class NotActivated < ::StandardError # :nodoc:
      def initialize(session)
        super("You must activate the Authlogic::Session::Base.controller with a controller object before creating objects")
      end
    end
    
    class SessionInvalid < ::StandardError # :nodoc:
      def initialize(session)
        super("Authentication failed: #{session.errors.full_messages.to_sentence}")
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
authlogic-0.10.4 lib/authlogic/session/errors.rb
authlogic-1.0.0 lib/authlogic/session/errors.rb
authlogic-1.1.0 lib/authlogic/session/errors.rb
authlogic-1.2.0 lib/authlogic/session/errors.rb
authlogic-1.2.2 lib/authlogic/session/errors.rb
authlogic-1.1.1 lib/authlogic/session/errors.rb
authlogic-1.1.2 lib/authlogic/session/errors.rb
authlogic-1.2.1 lib/authlogic/session/errors.rb
authlogic-1.3.0 lib/authlogic/session/errors.rb
authlogic-1.3.2 lib/authlogic/session/errors.rb
authlogic-1.3.1 lib/authlogic/session/errors.rb
authlogic-1.4.0 lib/authlogic/session/errors.rb
authlogic-1.3.3 lib/authlogic/session/errors.rb
authlogic-1.3.4 lib/authlogic/session/errors.rb
authlogic-1.3.5 lib/authlogic/session/errors.rb
authlogic-1.3.6 lib/authlogic/session/errors.rb
authlogic-1.3.8 lib/authlogic/session/errors.rb
authlogic-1.3.9 lib/authlogic/session/errors.rb
authlogic-1.4.1 lib/authlogic/session/errors.rb
authlogic-1.3.7 lib/authlogic/session/errors.rb