Module: SqAuth::SqAuthHelpers::SinatraDSL

Included in:
Sinatra
Defined in:
lib/sq_auth/sq_auth_helpers/sq_auth_helpers_dsl.rb

Instance Method Summary collapse

Instance Method Details

#execute_for(*roles) ⇒ Object



30
31
32
# File 'lib/sq_auth/sq_auth_helpers/sq_auth_helpers_dsl.rb', line 30

def execute_for *roles
  create_filter [*roles], {draw: false}
end

#show_to(*roles) ⇒ Object



27
28
29
# File 'lib/sq_auth/sq_auth_helpers/sq_auth_helpers_dsl.rb', line 27

def show_to *roles
  create_filter [*roles]
end