mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
cleanup: rubocop: fix Layout/BlockAlignment in app/models/time_entry.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19028 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7867b4dcd5
commit
fb84731bcd
@ -14,13 +14,6 @@
|
||||
Layout/AlignHash:
|
||||
Enabled: false
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyleAlignWith.
|
||||
# SupportedStylesAlignWith: either, start_of_block, start_of_line
|
||||
Layout/BlockAlignment:
|
||||
Exclude:
|
||||
- 'app/models/time_entry.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Layout/BlockEndNewline:
|
||||
Exclude:
|
||||
|
||||
@ -28,7 +28,8 @@ class TimeEntry < ActiveRecord::Base
|
||||
belongs_to :activity, :class_name => 'TimeEntryActivity'
|
||||
|
||||
acts_as_customizable
|
||||
acts_as_event :title => Proc.new { |o|
|
||||
acts_as_event :title =>
|
||||
Proc.new {|o|
|
||||
related = o.issue if o.issue && o.issue.visible?
|
||||
related ||= o.project
|
||||
"#{l_hours(o.hours)} (#{related.event_title})"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user