Sha256: ae7a53e2551b848a16a7fb3ab4e1c8be0ece0e5d9dbcdd51c2f633f971210a5d

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

module RademadeAdmin
  class Login
    class Error < Exception

      attr_accessor :field

      def initialize(message, field)
        super message
        @field = field
      end

      def field_messages
        { field.to_sym => message }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rademade_admin-0.0.1 app/services/login/error.rb