app/controllers/announcements_controller.rb
Method update
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def update
@announcement = Announcement.find(params[:id]) || Announcement.new
parse_date_and_time_output(params[:announcement])
join_date_and_time(params[:announcement])
@announcement.update_attributes(params[:announcement])