Sha256: 02049df856a7817f9c764c714dae254bc1de0ab59bd322aab0be7a554daf7e09
Contents?: true
Size: 728 Bytes
Versions: 6
Compression:
Stored size: 728 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Abstract # Set: Abstract (AccountField) # module AccountField; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-account/set/abstract/account_field.rb"; end # 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 end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-account/set/abstract/account_field.rb ~~
Version data entries
6 entries across 6 versions & 1 rubygems