Class: Stratagem::ApplicationExtensions::Models::Adapters::Authlogic::Detect

Inherits:
Detect
  • Object
show all
Defined in:
lib/stratagem/framework_extensions/models/adapters/authlogic/detect.rb

Class Method Summary collapse

Class Method Details

.supports?(model) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
# File 'lib/stratagem/framework_extensions/models/adapters/authlogic/detect.rb', line 3

def self.supports?(model)
  begin
    model.ancestors.include?(::Authlogic::ActsAsAuthentic::MagicColumns::Methods)
  rescue
    false
  end
end