chengsteven/city-dog-share-calendar

View on GitHub
app/controllers/summary_controller.rb

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status