OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/controllers/meeting_minutes_controller.rb

22 lines
453 B

class MeetingMinutesController < ApplicationController
unloadable
include MeetingContentsHelper
before_filter :find_meeting, :find_minutes
def update
@minutes.attributes = params[:minutes]
if @minutes.save
flash[:notice] = l(:notice_successful_update)
redirect_to @meeting
else
end
end
private
def find_minutes
@minutes = @meeting.minutes || MeetingMinutes.new(:meeting => @meeting)
end
end