]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of app/models/version.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:36:35 +0000 (15:36 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 3 Oct 2020 15:36:35 +0000 (15:36 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20113 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/version.rb

index 85244c5235f12ecd09e673797ed7946723c8b195..15214b52f358c8ccabd21e5ff807544c87313ee7 100644 (file)
@@ -141,7 +141,7 @@ class Version < ActiveRecord::Base
       where([Redmine::Database.like("#{Version.table_name}.name", '?'), pattern])
     end
   }
-  scope :open, lambda { where(:status => 'open') }
+  scope :open, lambda {where(:status => 'open')}
   scope :status, lambda {|status|
     if status.present?
       where(:status => status.to_s)
@@ -359,7 +359,7 @@ class Version < ActiveRecord::Base
     [Arel.sql("(CASE WHEN #{table}.effective_date IS NULL THEN 1 ELSE 0 END)"), "#{table}.effective_date", "#{table}.name", "#{table}.id"]
   end
 
-  scope :sorted, lambda { order(fields_for_order_statement) }
+  scope :sorted, lambda {order(fields_for_order_statement)}
 
   # Returns the sharings that +user+ can set the version to
   def allowed_sharings(user = User.current)