Sha256: a4088d07c3b13091ed54216b03b38970718b96850d57833f330886463570847f
Contents?: true
Size: 247 Bytes
Versions: 21
Compression:
Stored size: 247 Bytes
Contents
class ApplicationController < Sinatra::Base # Include Pundit for authorization include Pundit helpers do def authorized?(object, permission) return false unless authenticated? policy(object).send permission end end end
Version data entries
21 entries across 21 versions & 1 rubygems