Sha256: ec9243c5d740e072e242d51bcc026ac27c5076f45cd661348faf9680d1fc40b4

Contents?: true

Size: 381 Bytes

Versions: 25

Compression:

Stored size: 381 Bytes

Contents

Rails.application.config.middleware.use OmniAuth::Builder do
  if !Adminpanel.twitter_api_key.nil? && !Adminpanel.twitter_api_secret.nil?
    provider(
      :twitter,
      Adminpanel.twitter_api_key,
      Adminpanel.twitter_api_secret,
      {
        authorize_params: {
          force_login: 'true',
          lang: I18n.default_locale.to_s
        }
      }
    )
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
adminpanel-3.3.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-3.2.1 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-3.2.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-3.1.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-3.0.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.6.1 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.6.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.5 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.4 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.3 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.2 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.1 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.5.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.4.3 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.4.2 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.4.1 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.4.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.3.1 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.3.0 config/initializers/adminpanel/twitter_oauth.rb
adminpanel-2.2.5 config/initializers/twitter-oauth.rb