Sha256: 081c9d8c476c4202b7cf877462b0fe83cc717ff57143b4d4256a3d6869a9ee91
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class Right # Set: All "+Account" cards # # -*- encoding : utf-8 -*- module Account; extend Card::Set def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/account/set/right/account.rb"; end card_accessor :email card_accessor :password card_accessor :salt card_accessor :status require_field :email def accounted left end def accounted_id left_id end def ok_to_read own_account? || super 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 def changes_visible? act act.actions_affecting(act.card).each do |action| return true if action.card.ok? :read end false end def send_account_email email_template ecard = Card[email_template] unless ecard&.type_id == EmailTemplateID raise Card::Error, "invalid email template: #{email_template}" end ecard.deliver self, to: email end def method_missing method, *args return super unless args.empty? && (matches = method.match(/^(?<status>.*)\?$/)) status == matches[:status] end def respond_to_missing? method, _include_private=false method.match?(/\?$/) ? true : super end end;end;end;end; # ~~ generated from /Users/ezl5238/dev/decko/gem/mod/account/set/right/account.rb ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
card-1.102.0 | tmpsets/set/mod010-account/right/account.rb |