Sha256: 1acad2463c10095084b12039b52c6be82180c4374f8ff928773a2b912957fc0b

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 Bytes

Contents

module Authgasm
  module Session
    class Errors < ::ActiveRecord::Errors # :nodoc:
    end
    
    class NotActivated < ::StandardError # :nodoc:
      def initialize(session)
        super("You must activate the Authgasm::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

4 entries across 4 versions & 1 rubygems

Version Path
authgasm-0.10.0 lib/authgasm/session/errors.rb
authgasm-0.10.1 lib/authgasm/session/errors.rb
authgasm-0.10.2 lib/authgasm/session/errors.rb
authgasm-0.10.3 lib/authgasm/session/errors.rb