module Sinatra::Nedry
Constants
- NOT_AUTH_TEMPLATE
Public Instance Methods
flagged!(&blk)
click to toggle source
# File lib/sinatra/nedry.rb, line 11 def flagged!(&blk) if authorized? || ENV["RACK_ENV"] != "production" blk.call else not_authorized end end
protected!(&blk)
click to toggle source
# File lib/sinatra/nedry.rb, line 3 def protected!(&blk) if authorized? blk.call else not_authorized end end