Sha256: 591ea5ca14ba12fa1dd1d219f1100e4d4b453fabc255cbb48565744d5c4072ed
Contents?: true
Size: 370 Bytes
Versions: 5
Compression:
Stored size: 370 Bytes
Contents
# allow account owner to update account field content def ok_to_update return true if own_account? && !name_changed? && !type_id_changed? super end # force inherit permission on create # (cannot be done with rule, because sets are not addressable) def permission_rule_id action if action == :create left_permission_rule_id action else super end end
Version data entries
5 entries across 5 versions & 2 rubygems