Skip to content

Commit

Permalink
[ci] rubocop workaround
Browse files Browse the repository at this point in the history
puts was prefered since no one checks logfiles from migration :/
  • Loading branch information
adrianschroeter committed Sep 16, 2015
1 parent 023bf62 commit 7edc676
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def self.up
medium: br.medium
)
unless added.length == 1
puts "ERROR: Unique added entry belonging to modified entry not found: #{br.id}"
Rails.logger.error "ERROR: Unique added entry belonging to modified entry not found: #{br.id}"
next
end
added.first.modify_time = added.first.obsolete_time
Expand All @@ -35,7 +35,7 @@ def self.down
medium: br.medium
)
unless added.length == 1
puts "ERROR: Unique added entry belonging to modified entry not found: #{br.id}"
Rails.logger.error "ERROR: Unique added entry belonging to modified entry not found: #{br.id}"
next
end
added.first.obsolete_time = added.first.modify_time
Expand Down

1 comment on commit 7edc676

@bgeuken
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrianschroeter If necessary one can ignore single rubocop rules with such a code snippet

# rubocop:disable RuleByName
....
# rubocop:enable RuleByName

Just don't use it to often;-)

Please sign in to comment.