Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Remove a couple of stray references to dg links
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanHatch committed Apr 21, 2013
1 parent dfa9303 commit 33831fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/needs_controller.rb
Expand Up @@ -55,6 +55,6 @@ def update
end

def collection
@needs ||= Need.includes(:directgov_links, :fact_checkers, :existing_services, :justifications, :kind, :writing_department, {accountabilities: :department})
@needs ||= Need.includes(:fact_checkers, :sources, :kind, :writing_department, {accountabilities: :department})
end
end
2 changes: 1 addition & 1 deletion app/models/need.rb
Expand Up @@ -41,7 +41,7 @@ class CannotDeleteStartedNeed < Exception; end

scope :undecided, where(:decision_made_at => nil)
scope :decided, where('decision_made_at IS NOT NULL')
scope :in_state, proc { |s| where(:status => s).includes([:fact_checkers, :accountabilities, :creator, :kind, :directgov_links, :existing_services, :justifications, :writing_department]) }
scope :in_state, proc { |s| where(:status => s).includes([:fact_checkers, :accountabilities, :creator, :kind, :sources, :writing_department]) }
default_scope order('priority, title')

before_save :record_decision_info, :if => :reason_for_decision_changed?
Expand Down

0 comments on commit 33831fb

Please sign in to comment.