remove spaces inside {} of app/models/tracker.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@20382 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-11-15 12:36:39 +00:00
parent cafdf6a6f4
commit bc2d89c54b

View File

@@ -40,7 +40,7 @@ class Tracker < ActiveRecord::Base
validates_length_of :name, :maximum => 30
validates_length_of :description, :maximum => 255
scope :sorted, lambda { order(:position) }
scope :sorted, lambda {order(:position)}
scope :named, lambda {|arg| where("LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip)}
# Returns the trackers that are visible by the user.