Sha256: 85597fca09e14c758619001481a77dfbe2a0f8dd090b1657ff75bddf3598fca7

Contents?: true

Size: 760 Bytes

Versions: 11

Compression:

Stored size: 760 Bytes

Contents

require 'warden/github'

require 'warden/github/rails/version'
require 'warden/github/rails/routes'
require 'warden/github/rails/railtie'
require 'warden/github/rails/config'
require 'warden/github/rails/controller_helpers'

require 'forwardable'

module Warden
  module GitHub
    module Rails
      extend SingleForwardable

      def_delegators :config,
                     :default_scope,
                     :scopes,
                     :team_id

      @config = Config.new

      def self.config
        @config
      end

      # Use this method to setup this gem.
      #
      # @example
      #
      #   Warden::GitHub::Rails.setup do |config|
      #     # ...
      #   end
      def self.setup
        yield config
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
warden-github-rails-1.3.0 lib/warden/github/rails.rb
warden-github-rails-1.2.3 lib/warden/github/rails.rb
warden-github-rails-1.2.2 lib/warden/github/rails.rb
warden-github-rails-1.2.1 lib/warden/github/rails.rb
warden-github-rails-1.2.0 lib/warden/github/rails.rb
warden-github-rails-1.1.2 lib/warden/github/rails.rb
warden-github-rails-1.1.1 lib/warden/github/rails.rb
warden-github-rails-1.1.0 lib/warden/github/rails.rb
warden-github-rails-thinknear-fork-1.1.0 lib/warden/github/rails.rb
warden-github-rails-1.0.1 lib/warden/github/rails.rb
warden-github-rails-1.0.0 lib/warden/github/rails.rb