Run rubocop --fix-layout and remove encoding comments
This commit is contained in:
parent
fa63e6e81d
commit
ea2862fdef
283 changed files with 1164 additions and 1969 deletions
|
|
@ -29,7 +29,7 @@ if defined? RubyUnits
|
|||
|
||||
# we use pc for piece, not parsec
|
||||
RubyUnits::Unit.redefine!('parsec') do |unit|
|
||||
unit.aliases = unit.aliases.reject {|u| u=='pc'}
|
||||
unit.aliases = unit.aliases.reject { |u| u == 'pc' }
|
||||
unit.display_name = 'parsec'
|
||||
end
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ if defined? RubyUnits
|
|||
# default precision of 8 which same as all database definitions in db/migrate/20131213002332_*.rb
|
||||
class Rational
|
||||
alias orig_to_d to_d
|
||||
def to_d(precision=8)
|
||||
def to_d(precision = 8)
|
||||
orig_to_d(precision)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue