Sha256: e016cb22412f2776800b00eb5b6af40b23162b43ff81a32edbf61f7ebe9d4355
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
module Georgia class WidgetPolicy < ApplicationPolicy def index? manage? end def show? manage? end def new? manage? end def create? manage? end def edit? manage? end def update? manage? end def destroy? manage? end private def manage? user_permissions(widget_permissions, :manage_widgets).include?(true) end def widget_permissions Georgia.permissions[:content] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.8.0 | app/policies/georgia/widget_policy.rb |