Sha256: eff3b9da1f1f8294176740501d9c797a3ec168a07029785003c1f04db99b452a

Contents?: true

Size: 292 Bytes

Versions: 2

Compression:

Stored size: 292 Bytes

Contents

module Authgasm
  module Session
    class Errors < ::ActiveRecord::Errors # :nodoc:
    end
    
    class SessionInvalid < ::StandardError # :nodoc:
      def initialize(session)
        super("Authentication failed: #{session.errors.full_messages.to_sentence}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authgasm-0.9.1 lib/authgasm/session/errors.rb
authgasm-0.9.0 lib/authgasm/session/errors.rb