Sha256: 2fe093eaeb93a26916b3d716f25b959a18e89c037aa131bebf284745f3436cc6

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

module Raisin
  class VersionConfig
    attr_accessor :vendor
    attr_writer :using

    def using
      @using || :header
    end
  end

  module Configuration
    mattr_accessor :enable_auth_by_default
    @@enable_auth_by_default = false

    mattr_accessor :default_auth_method
    @@default_auth_method = :authenticate_user! # Devise FTW

    mattr_accessor :response_formats
    @@response_formats = [:json]

    def self.version
      @version_config ||= VersionConfig.new
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
raisin-0.0.5 lib/raisin/configuration.rb
raisin-0.0.4 lib/raisin/configuration.rb
raisin-0.0.2 lib/raisin/configuration.rb
raisin-0.0.1 lib/raisin/configuration.rb