Skip to content

Commit 3ffc75b

Browse files
committed
remove spaces inside {} of app/models/custom_field.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20111 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 18da6cd commit 3ffc75b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/models/custom_field.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CustomField < ActiveRecord::Base
2222
include Redmine::SubclassFactory
2323

2424
has_many :enumerations,
25-
lambda { order(:position) },
25+
lambda {order(:position)},
2626
:class_name => 'CustomFieldEnumeration',
2727
:dependent => :delete_all
2828
has_many :custom_values, :dependent => :delete_all
@@ -35,7 +35,7 @@ class CustomField < ActiveRecord::Base
3535
validates_uniqueness_of :name, :scope => :type
3636
validates_length_of :name, :maximum => 30
3737
validates_length_of :regexp, maximum: 255
38-
validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats }
38+
validates_inclusion_of :field_format, :in => Proc.new {Redmine::FieldFormat.available_formats}
3939
validate :validate_custom_field
4040

4141
before_validation :set_searchable
@@ -49,7 +49,7 @@ class CustomField < ActiveRecord::Base
4949
end
5050
end
5151

52-
scope :sorted, lambda { order(:position) }
52+
scope :sorted, lambda {order(:position)}
5353
scope :visible, lambda {|*args|
5454
user = args.shift || User.current
5555
if user.admin?

0 commit comments

Comments
 (0)