Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/active_authentication/routes.rb

Instance Method Summary collapse

Instance Method Details

#active_authenticationObject



3
4
5
6
7
8
9
# File 'lib/active_authentication/routes.rb', line 3

def active_authentication
  scope module: :active_authentication do
    ActiveAuthentication::Model::CONCERNS.each do |concern|
      send(concern) if User.send(:"#{concern}?") && respond_to?(concern, true)
    end
  end
end