chengsteven/city-dog-share-calendar

View on GitHub

Showing 1 of 3 total issues

Method view has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def view
    now = Time.now
    start_time = Time.new(now.year, now.month, 1, 0, 0).to_formatted_s(:db)
    last_day_of_month = DateTime.new(now.year, now.month).end_of_month.day
    end_time = Time.new(now.year, now.month, last_day_of_month, 23, 59).to_formatted_s(:db)
Severity: Minor
Found in app/controllers/summary_controller.rb - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language