lib/mls/models/task.rb in mls-1.6.0 vs lib/mls/models/task.rb in mls-1.7.0

- old
+ new

@@ -9,9 +9,11 @@ has_many :mistakes has_many :time_logs has_many :reviews, -> { where(:type => "review") }, :class_name => "Task", :as => :subject, :inverse_of => :subject has_many :fixes, -> { where(:type => "fix") }, :class_name => "Task", :as => :subject, :inverse_of => :subject + has_and_belongs_to_many :regions + def for_source? subject_type == "Source" end def for_task?