1
0

Replaced #current_goal with @goal

This commit is contained in:
cryptogopher
2020-08-24 22:09:04 +02:00
parent 7e8508f9d4
commit c2055c4eb4
5 changed files with 40 additions and 31 deletions

View File

@@ -8,6 +8,13 @@ module Concerns::Finders
render_404
end
def find_goal_by_project_id
@project = Project.find(params[:project_id])
@goal = @project.goals.binding
rescue ActiveRecord::RecordNotFound
render_404
end
def find_meal
@meal = Meal.find(params[:id])
@project = @meal.project