Rubocop fixes and rubocop todo update for those that can't be done right now

This commit is contained in:
Bertocq
2017-10-17 22:06:07 +02:00
parent ce0a7f6fad
commit 7b40c84166
5 changed files with 65 additions and 79 deletions

View File

@@ -9,10 +9,10 @@ module ImageablesHelper
end
def imageable_max_file_size
bytesToMeg(Image::MAX_IMAGE_SIZE)
bytes_to_megabytes(Image::MAX_IMAGE_SIZE)
end
def bytesToMeg(bytes)
def bytes_to_megabytes(bytes)
bytes / Numeric::MEGABYTE
end
@@ -37,4 +37,4 @@ module ImageablesHelper
max_file_size: imageable_max_file_size
end
end
end