Sha256: 3aee77354099e1a662ce56b863cb0bfe83ec92fa487eb927c9242ebdc1d8a9bb

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

class RePlanWorkflow < ActiveRecord::Base
  default_scope :order => 'position'
  belongs_to :re_plan
  belongs_to :re_workflow
  acts_as_list :scope => :re_plan 

  scope :order_plan_title, order('re_plans.title ASC')
  scope :by_workflow_id, lambda { |workflow_id| where("re_workflow_id = ?", workflow_id) }
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rules_engine-0.3.3 app/models/re_plan_workflow.rb
rules_engine-0.3.2 app/models/re_plan_workflow.rb
rules_engine-0.3.1 app/models/re_plan_workflow.rb
rules_engine-0.3.0 app/models/re_plan_workflow.rb