diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-16 12:22:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-16 12:22:32 +0000 |
commit | cf30b49e0ed6f32e1d4dac59d377b0273918cd5f (patch) | |
tree | e4dd8c0cd82bb7f1d878e3faf55f27f863519439 | |
parent | 14943d8d5542e74177d7b7772ba99ed22a0bba07 (diff) | |
download | redmine-cf30b49e0ed6f32e1d4dac59d377b0273918cd5f.tar.gz redmine-cf30b49e0ed6f32e1d4dac59d377b0273918cd5f.zip |
remove spaces inside {} of app/models/time_entry.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20397 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/models/time_entry.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/time_entry.rb b/app/models/time_entry.rb index b81eef787..eed84dc1b 100644 --- a/app/models/time_entry.rb +++ b/app/models/time_entry.rb @@ -48,8 +48,8 @@ class TimeEntry < ActiveRecord::Base :scope => proc { joins(:project).preload(:project) } validates_presence_of :author_id, :user_id, :activity_id, :project_id, :hours, :spent_on - validates_presence_of :issue_id, :if => lambda { Setting.timelog_required_fields.include?('issue_id') } - validates_presence_of :comments, :if => lambda { Setting.timelog_required_fields.include?('comments') } + validates_presence_of :issue_id, :if => lambda {Setting.timelog_required_fields.include?('issue_id')} + validates_presence_of :comments, :if => lambda {Setting.timelog_required_fields.include?('comments')} validates_numericality_of :hours, :allow_nil => true, :message => :invalid validates_length_of :comments, :maximum => 1024, :allow_nil => true validates :spent_on, :date => true @@ -218,7 +218,7 @@ class TimeEntry < ActiveRecord::Base users = [] if project users = project.members.active.preload(:user) - users = users.map(&:user).select{ |u| u.allowed_to?(:log_time, project) } + users = users.map(&:user).select{|u| u.allowed_to?(:log_time, project)} end users << User.current if User.current.logged? && !users.include?(User.current) users |