module Mumuki::Laboratory::Controllers::Content
Public Instance Methods
validate_used_here!()
click to toggle source
ensures contents are in current organization's path
# File lib/mumuki/laboratory/controllers/content.rb, line 9 def validate_used_here! #TODO refactor subject logic (e.g. we can't move validate_accessible! here because ExerciseSolutionsController does not declare a subject) raise Mumuki::Domain::NotFoundError unless subject&.used_in?(Organization.current) end