[#345] fix mistype

This commit is contained in:
Alexander Machehin 2014-03-11 15:56:06 +06:00
parent 775ab380a2
commit 3fbaa265c3
1 changed files with 1 additions and 1 deletions

View File

@ -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