app/models/banner.rb
Line is too long. [116/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
scope :with_active, -> { where("post_started_at <= ?", Time.current).where("post_ended_at >= ?", Time.current) }
- Exclude checks
Line is too long. [108/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
scope :with_inactive, -> { where("post_started_at > ? or post_ended_at < ?", Time.current, Time.current) }
- Exclude checks
Line is too long. [122/100] (https://github.com/bbatsov/ruby-style-guide#80-character-limits) Open
Open
scope :in_section, ->(section_name) { joins(:web_sections, :sections).where("web_sections.name ilike ?", section_name) }
- Exclude checks