Allow binding goal saving w/o exposures and disallow destruction
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
module Concerns::Finders
|
||||
private
|
||||
|
||||
def find_goal(id = params[:id])
|
||||
@goal = Goal.find(id)
|
||||
@project = @goal.project
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
def find_meal
|
||||
@meal = Meal.find(params[:id])
|
||||
@project = @meal.project
|
||||
|
||||
Reference in New Issue
Block a user