From 3fbaa265c3d131b8cca4634f8783acd8674d2941 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 11 Mar 2014 15:56:06 +0600 Subject: [PATCH] [#345] fix mistype --- app/models/build_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index 9448ec7c6..6352cd46e 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -114,7 +114,7 @@ class BuildList < ActiveRecord::Base scope :scoped_to_arch, ->(arch) { where(arch_id: arch) if arch.present? } scope :scoped_to_save_platform, ->(pl_id) { where(save_to_platform_id: pl_id) if pl_id.present? } scope :scoped_to_project_version, ->(pr_version) { where(project_version: pr_version) if pr_version.present? } - scope :scoped_to_is_circle, ->(is_circle) { { where(is_circle: is_circle) } + scope :scoped_to_is_circle, ->(is_circle) { where(is_circle: is_circle) } scope :for_creation_date_period, ->(start_date, end_date) { s = scoped s = s.where(["#{table_name}.created_at >= ?", start_date]) if start_date