Skip to content

Commit 52eba6e

Browse files
committed
remove spaces inside {} of app/models/version.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20113 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent c308a77 commit 52eba6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/models/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class Version < ActiveRecord::Base
141141
where([Redmine::Database.like("#{Version.table_name}.name", '?'), pattern])
142142
end
143143
}
144-
scope :open, lambda { where(:status => 'open') }
144+
scope :open, lambda {where(:status => 'open')}
145145
scope :status, lambda {|status|
146146
if status.present?
147147
where(:status => status.to_s)
@@ -359,7 +359,7 @@ def self.fields_for_order_statement(table=nil)
359359
[Arel.sql("(CASE WHEN #{table}.effective_date IS NULL THEN 1 ELSE 0 END)"), "#{table}.effective_date", "#{table}.name", "#{table}.id"]
360360
end
361361

362-
scope :sorted, lambda { order(fields_for_order_statement) }
362+
scope :sorted, lambda {order(fields_for_order_statement)}
363363

364364
# Returns the sharings that +user+ can set the version to
365365
def allowed_sharings(user = User.current)

0 commit comments

Comments
 (0)