Sha256: 570bd23577497251c3ff4f54ae92c1927078458c2de28b23d399182ddd951a1c
Contents?: true
Size: 457 Bytes
Versions: 19
Compression:
Stored size: 457 Bytes
Contents
## ## The obfuscated action ## class Office::LeadAction include Mongoid::Document include Mongoid::Timestamps belongs_to :lead_action_template, class_name: '::Office::LeadActionTemplate', inverse_of: :lead_actions, foreign_key: :tmpl_id def tmpl lead_action_template end field :lead_id, type: :integer validates :lead_id, presence: true def lead Lead.find( lead_id ) end field :params, type: Object, default: '{}' end
Version data entries
19 entries across 19 versions & 1 rubygems