Permalink
Browse files

acts-as-list-model-changes

Now two changes to our models:

SHOW_PATCH
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent ebb4649 commit 91eb4a34ac5dfe4279eedc3a8a139c71d63d04c0
Showing with 3 additions and 2 deletions.
  1. +1 −2 app/models/story.rb
  2. +2 −0 app/models/task.rb
View
@@ -12,8 +12,7 @@ class Story < ActiveRecord::Base
belongs_to :project, :inverse_of => :stories, :counter_cache => true
belongs_to :status, :class_name => "StoryStatus", :inverse_of => :stories
has_many :tasks, :dependent => :destroy, :inverse_of => :story
has_many :tasks, :dependent => :destroy, :inverse_of => :story, :order => :position
children :tasks
View
@@ -13,6 +13,8 @@ class Task < ActiveRecord::Base
has_many :task_assignments, :dependent => :destroy, :inverse_of => :task
has_many :users, :through => :task_assignments, :accessible => true, :dependent => :destroy
acts_as_list :scope => :story
# --- Permissions --- #
def create_permitted?

0 comments on commit 91eb4a3

Please sign in to comment.