app/models/banner.rb

Summary

Maintainability
A
0 mins
Test Coverage

Line is too long. [116/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

  scope :with_active,   -> { where("post_started_at <= ?", Time.current).where("post_ended_at >= ?", Time.current) }
Severity: Minor
Found in app/models/banner.rb by rubocop

Line is too long. [108/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

  scope :with_inactive, -> { where("post_started_at > ? or post_ended_at < ?", Time.current, Time.current) }
Severity: Minor
Found in app/models/banner.rb by rubocop

Line is too long. [122/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits)
Open

  scope :in_section, ->(section_name) { joins(:web_sections, :sections).where("web_sections.name ilike ?", section_name) }
Severity: Minor
Found in app/models/banner.rb by rubocop

There are no issues that match your filters.

Category
Status