Sha256: 015a061a4e92da8e61c1edf52b54c59ea731dd443ad3018cc24639040490121e
Contents?: true
Size: 307 Bytes
Versions: 121
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
121 entries across 121 versions & 1 rubygems
Version | Path |
---|---|
pg_rails-7.0.8.pre.alpha.53 | pg_engine/app/policies/user_registration_policy.rb |