Commit 7ee2e10e authored by Kaspar Vollenweider's avatar Kaspar Vollenweider

fix journals created with wrong relations

parent ab2a5795
Pipeline #35439 failed with stage
in 37 minutes and 17 seconds
......@@ -10,7 +10,7 @@ class JournalsController < ApplicationController
end
def new
@journal = @journaled.journals.new
@journal = Journal.new
handle_semester_feedback_quote
authorize @journal
end
......@@ -18,7 +18,7 @@ class JournalsController < ApplicationController
def edit; end
def create
@journal = @journaled.journals.new(journal_params)
@journal = Journal.new(journal_params)
@journal.user = current_user
authorize @journal
if @journal.save
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment