Sha256: 015a061a4e92da8e61c1edf52b54c59ea731dd443ad3018cc24639040490121e
Contents?: true
Size: 307 Bytes
Versions: 120
Compression:
Stored size: 307 Bytes
Contents
# frozen_string_literal: true class UserRegistrationPolicy attr_reader :user, :record def initialize(user, record) @user = user @record = record end def new? create? end def create? user.blank? end def edit? update? end def update? user == record end end
Version data entries
120 entries across 120 versions & 1 rubygems