Methods
- A
- S
Class Public methods
app_info(strategy)
Link
Source: show
# File rhino/rhino/app/helpers/rhino/omniauth_helper.rb 18 def self.app_info(strategy) 19 return [] if strategy == :developer 20 21 ups = strategy.to_s.upcase 22 [ENV["AUTH_#{ups}_CLIENT_ID"], ENV["AUTH_#{ups}_SECRET_KEY"]] unless strategy == :developer 23 end
strategies()
Link
Source: show
# File rhino/rhino/app/helpers/rhino/omniauth_helper.rb 5 def self.strategies 6 strategies = ENV.keys.map do |env| 7 match = /AUTH_(.*)_CLIENT_ID/.match(env) 8 next unless match 9 10 match[1].downcase.to_sym 11 end.compact.uniq 12 13 strategies += [:developer] if Rails.env.development? && !Rake.try(:application) 14 15 strategies 16 end