Module: Pathway::Plugins::SimpleAuth::ClassMethods

Defined in:
lib/pathway/plugins/simple_auth.rb

Instance Method Summary collapse

Instance Method Details

#authorization(&block) ⇒ Object



7
8
9
10
11
# File 'lib/pathway/plugins/simple_auth.rb', line 7

def authorization(&block)
  define_method(:authorized?) do |*args|
    instance_exec(*args, &block)
  end
end