Project

General

Profile

Download (233 Bytes) Statistics
| Branch: | Tag: | Revision:
module SSO
METHODS = [Apache, Basic, Oauth]

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

def self.all
METHODS
end
end
(16-16/18)