Sha256: 8bc76735c1a4ed45fdf8c2f5cd02db25860bf423e7316134e0f4d49c24bd7e88

Contents?: true

Size: 343 Bytes

Versions: 9

Compression:

Stored size: 343 Bytes

Contents

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

  named_scope :order_plan_title, :order => 're_plans.title ASC'
  named_scope :by_workflow_id, lambda { |workflow_id| {:conditions => ["re_workflow_id = ?", workflow_id] }}
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rules_engine-0.2.0 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.10 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.9 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.8 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.7 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.6 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.5 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.4 rails_generators/templates/app/models/re_plan_workflow.rb
rules_engine-0.1.3 rails_generators/templates/app/models/re_plan_workflow.rb