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

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

Instance Method Summary collapse

Instance Method Details

#authorization(&block) ⇒ Object



5
6
7
8
9
# File 'lib/pathway/plugins/simple_auth.rb', line 5

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