]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at ActiveRecord scope lambda of app/models/query.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:25:10 +0000 (13:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 9 Nov 2020 13:25:10 +0000 (13:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20317 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb

index 5f69f56ac24631f65df5245d245861de3d3d9882..44b3adca34df45eb9a3ead38daa9ee1fc6f666e6 100644 (file)
@@ -313,9 +313,9 @@ class Query < ActiveRecord::Base
   class_attribute :view_permission
 
   # Scope of queries that are global or on the given project
-  scope :global_or_on_project, lambda {|project|
+  scope :global_or_on_project, (lambda do |project|
     where(:project_id => (project.nil? ? nil : [nil, project.id]))
-  }
+  end)
 
   scope :sorted, lambda {order(:name, :id)}