Module: HanamiId::Authentication

Defined in:
lib/hanami_id/authentication.rb

Class Method Summary collapse

Class Method Details

.included(action) ⇒ Object



9
10
11
12
13
14
# File 'lib/hanami_id/authentication.rb', line 9

def self.included(action)
  action.class_eval do
    before :"authenticate_#{model}!"
    expose :"current_#{model}"
  end
end