Sha256: ae98f1ef08317e720dae6444177db03b86e9afcf8adba0528464da0af6418479

Contents?: true

Size: 1006 Bytes

Versions: 38

Compression:

Stored size: 1006 Bytes

Contents

require 'oauth2'
require 'omniauth'
require 'openstax_utilities'
require 'uri'
require 'omniauth/strategies/openstax'
require 'openstax/accounts/api'
require 'openstax/accounts/configuration'
require 'openstax/accounts/current_user_manager'
require 'openstax/accounts/default_account_user_mapper'
require 'openstax/accounts/engine'

module OpenStax
  module Accounts

    class << self

      ###########################################################################
      #
      # Configuration machinery.
      #
      # To configure OpenStax Accounts, put the following code in your
      # application's initialization logic
      # (eg. in the config/initializers in a Rails app)
      #
      #   OpenStax::Accounts.configure do |config|
      #     config.<parameter name> = <parameter value>
      #     ...
      #   end
      #
      
      def configure
        yield configuration
      end

      def configuration
        @configuration ||= Configuration.new
      end

    end

  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
openstax_accounts-7.13.1 lib/openstax_accounts.rb
openstax_accounts-7.13.0 lib/openstax_accounts.rb
openstax_accounts-7.12.0 lib/openstax_accounts.rb
openstax_accounts-7.11.0 lib/openstax_accounts.rb
openstax_accounts-7.10.0 lib/openstax_accounts.rb
openstax_accounts-7.9.0 lib/openstax_accounts.rb
openstax_accounts-7.8.0 lib/openstax_accounts.rb
openstax_accounts-7.7.0 lib/openstax_accounts.rb
openstax_accounts-7.6.0 lib/openstax_accounts.rb
openstax_accounts-7.5.0 lib/openstax_accounts.rb
openstax_accounts-7.4.0 lib/openstax_accounts.rb
openstax_accounts-7.3.0 lib/openstax_accounts.rb
openstax_accounts-7.2.0 lib/openstax_accounts.rb
openstax_accounts-7.1.0 lib/openstax_accounts.rb
openstax_accounts-7.0.1 lib/openstax_accounts.rb
openstax_accounts-7.0.0 lib/openstax_accounts.rb
openstax_accounts-6.4.2 lib/openstax_accounts.rb
openstax_accounts-6.4.1 lib/openstax_accounts.rb
openstax_accounts-6.4.0 lib/openstax_accounts.rb
openstax_accounts-6.3.2 lib/openstax_accounts.rb