• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 14145714091

29 Mar 2025 12:39PM UTC coverage: 84.27% (-9.7%) from 93.985%
14145714091

Pull #2808

github

web-flow
Merge 0843c72fa into 6655216a6
Pull Request #2808: Convert Query to AR scopes

472 of 2300 new or added lines in 78 files covered. (20.52%)

1381 existing lines in 27 files now uncovered.

26557 of 31514 relevant lines covered (84.27%)

537.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/classes/query/scope_classes/articles.rb
1
# frozen_string_literal: true
2

NEW
3
class Query::ScopeClasses::Articles < Query::BaseAR
×
NEW
4
  def model
×
NEW
5
    Article
×
NEW
6
  end
×
7

NEW
8
  def self.parameter_declarations
×
NEW
9
    super.merge(
×
NEW
10
      created_at: [:time],
×
NEW
11
      updated_at: [:time],
×
NEW
12
      id_in_set: [Article],
×
NEW
13
      title_has: :string,
×
NEW
14
      body_has: :string,
×
NEW
15
      by_users: [User]
×
NEW
16
    )
×
NEW
17
  end
×
18

NEW
19
  def initialize_flavor
×
NEW
20
    add_sort_order_to_title
×
NEW
21
    add_owner_and_time_stamp_conditions
×
NEW
22
    add_id_in_set_condition
×
NEW
23
    add_simple_search_condition(:title)
×
NEW
24
    add_simple_search_condition(:body)
×
NEW
25
    super
×
NEW
26
  end
×
27

NEW
28
  def self.default_order
×
NEW
29
    :created_at
×
NEW
30
  end
×
NEW
31
end
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc