Module: SSO

Defined in:
lib/sso.rb,
lib/sso/base.rb,
lib/sso/signo.rb,
lib/sso/apache.rb

Defined Under Namespace

Classes: Apache, Base, Signo

Constant Summary collapse

METHODS =
[Apache, Signo]

Class Method Summary collapse

Class Method Details

.allObject


9
10
11
# File 'lib/sso.rb', line 9

def self.all
  METHODS
end

.get_available(controller) ⇒ Object


4
5
6
7
# File 'lib/sso.rb', line 4

def self.get_available(controller)
  all_methods = all.map { |method| method.new(controller) }
  all_methods.select(&:available?).first
end