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

Version Path
ish_models-3.0.0.1 lib/office/lead_action.rb
ish_models-0.0.33.304 lib/office/lead_action.rb
ish_models-0.0.33.303 lib/office/lead_action.rb
ish_models-0.0.33.302 lib/office/lead_action.rb
ish_models-0.0.33.301 lib/office/lead_action.rb
ish_models-0.0.33.300 lib/office/lead_action.rb
ish_models-0.0.33.299 lib/office/lead_action.rb
ish_models-0.0.33.298 lib/office/lead_action.rb
ish_models-0.0.33.297 lib/office/lead_action.rb
ish_models-0.0.33.296 lib/office/lead_action.rb
ish_models-0.0.33.295 lib/office/lead_action.rb
ish_models-0.0.33.294 lib/office/lead_action.rb
ish_models-0.0.33.293 lib/office/lead_action.rb
ish_models-0.0.33.292 lib/office/lead_action.rb
ish_models-0.0.33.291 lib/office/lead_action.rb
ish_models-0.0.33.287 lib/office/lead_action.rb
ish_models-0.0.33.286 lib/office/lead_action.rb
ish_models-0.0.33.285 lib/office/lead_action.rb
ish_models-0.0.33.284 lib/office/lead_action.rb