Sha256: 47ec556c6ce98d89c883f435bb8d3466d3ecf400b760af5f4e58e690f1d170be
Contents?: true
Size: 596 Bytes
Versions: 141
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true class ApplicationPolicy attr_reader :user, :record def initialize(user, record) @user = user @record = record end def index? false end def show? true end def create? true end def new? create? end def update? false end def edit? update? end def destroy? false end def history? create? end class Scope def initialize(user, scope) @user = user @scope = scope end def resolve scope.all end private attr_reader :user, :scope end end
Version data entries
141 entries across 141 versions & 1 rubygems