Class: Stratagem::ApplicationExtensions::Models::Adapters::RestfulAuthentication::Detect
- Defined in:
- lib/stratagem/framework_extensions/models/adapters/restful_authentication/detect.rb
Class Method Summary collapse
Class Method Details
.supports?(model) ⇒ Boolean
5 6 7 8 9 10 11 |
# File 'lib/stratagem/framework_extensions/models/adapters/restful_authentication/detect.rb', line 5 def self.supports?(model) begin model.ancestors.include?(::Authentication::ByPassword) rescue false end end |