Skip to content

Commit

Permalink
Adds business and citizen results to checker controller
Browse files Browse the repository at this point in the history
We should now be able to use these in the view instead of actions
  • Loading branch information
huwd committed Dec 3, 2019
1 parent 6646ea0 commit c35a761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/brexit_checker_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def results
all_actions = BrexitChecker::Action.load_all
@criteria = BrexitChecker::Criterion.load_by(criteria_keys)
@actions = filter_items(all_actions, criteria_keys)
@business_results = BrexitChecker::ResultsAudiences.populate_business_groups(@actions, @criteria)
@citizen_results = BrexitChecker::ResultsAudiences.populate_citizen_groups(@actions, @criteria)
end

def email_signup; end
Expand Down

0 comments on commit c35a761

Please sign in to comment.