From: Toshi MARUYAMA Date: Sat, 3 Oct 2020 15:36:20 +0000 (+0000) Subject: remove spaces inside {} of app/models/custom_field.rb X-Git-Tag: 4.2.0~706 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3ffc75bcf6b39fb81c462f15cb4e168984501276;p=redmine.git remove spaces inside {} of app/models/custom_field.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20111 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb index 9743d1a21..6c0f4e483 100644 --- a/app/models/custom_field.rb +++ b/app/models/custom_field.rb @@ -22,7 +22,7 @@ class CustomField < ActiveRecord::Base include Redmine::SubclassFactory has_many :enumerations, - lambda { order(:position) }, + lambda {order(:position)}, :class_name => 'CustomFieldEnumeration', :dependent => :delete_all has_many :custom_values, :dependent => :delete_all @@ -35,7 +35,7 @@ class CustomField < ActiveRecord::Base validates_uniqueness_of :name, :scope => :type validates_length_of :name, :maximum => 30 validates_length_of :regexp, maximum: 255 - validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats } + validates_inclusion_of :field_format, :in => Proc.new {Redmine::FieldFormat.available_formats} validate :validate_custom_field before_validation :set_searchable @@ -49,7 +49,7 @@ class CustomField < ActiveRecord::Base end end - scope :sorted, lambda { order(:position) } + scope :sorted, lambda {order(:position)} scope :visible, lambda {|*args| user = args.shift || User.current if user.admin?