Class: UiChanged::ScreenshotsControllerBase

Inherits:
ApplicationController show all
Defined in:
app/controllers/ui_changed/screenshots_controller_base.rb

Instance Method Summary collapse

Instance Method Details

#screenshot_countsObject


6
7
8
9
10
11
12
13
# File 'app/controllers/ui_changed/screenshots_controller_base.rb', line 6

def screenshot_counts
  @search = params[:search]
  @diff_count = UiChanged::Screenshot.not_in_ignored.where(:diff_found => true).count
  @control_count = UiChanged::Screenshot.not_in_ignored.where(:is_control => true).count
  @test_count = UiChanged::Screenshot.not_in_ignored.where(:is_test => true).count
  @compare_count = UiChanged::Screenshot.not_in_ignored.where(:is_compare => true).count
  @ignore_count = UiChanged::ScreenshotIgnoreUrl.count
end