Sha256: 1ff94df9095008dda1c361273da621c8bcef83298f3ba25eedae659b9dfd9dd3
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
module ClassMethods def default_accounted_type_id UserID end end def account nil end def account? false end event :generate_token do Digest::SHA1.hexdigest "--#{Time.zone.now.to_f}--#{rand 10}--" end event :set_stamper, :prepare_to_validate do self.updater_id = Auth.current_id self.creator_id = updater_id if new_card? end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-mod-account-0.18.1 | set/all/account.rb |
card-mod-account-0.18.0 | set/all/account.rb |
card-mod-account-0.17.0 | set/all/account.rb |