YaleSTC/shifts

View on GitHub
app/controllers/announcements_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method update has 27 lines of code (exceeds 25 allowed). Consider refactoring.
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])
Severity: Minor
Found in app/controllers/announcements_controller.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status