Sha256: 77f83fa9cfbc8984ac9881747bc2b2515c7b2d026a000051781b926def221556
Contents?: true
Size: 603 Bytes
Versions: 96
Compression:
Stored size: 603 Bytes
Contents
class <%= controller_class_name %>Controller < ApplicationController before_filter :require_user <%= template_for_inclusion %> protected # =================== # = Authorize BEGIN = # =================== def create_authorized? permit?([:root, :super]) end def delete_authorized? permit?([:root, :super]) end def list_authorized? permit?([:root, :super]) end def show_authorized? permit?([:root, :super]) end def update_authorized? permit?([:root, :super]) end # ================= # = Authorize END = # ================= end
Version data entries
96 entries across 96 versions & 1 rubygems