1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fixed syntax

This commit is contained in:
Sylvain 2019-05-07 15:56:23 +02:00
parent 26b901ebb5
commit 3394413747
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@
- Fix a bug: (spanish) some translations are not loaded correctly
- Fix a bug: some users may not appear in the admin's general listing
- Fix a bug: updating a setting does not chain new values
- Fix a bug: Availabilities export report an erroneous number of reservations for machine availabilities
- Fix a bug: Availabilities export report an erroneous number of reservations for machine availabilities (#131)
- Fix a security issue: updated to jquery 3.4.1 to fix [CVE-2019-11358](https://nvd.nist.gov/vuln/detail/CVE-2019-11358)
- Improved translations syntax according to YML specifications
- Refactored some Ruby code to match style guide

View File

@ -255,8 +255,8 @@ class Invoice < ActiveRecord::Base
# @param value {Integer} the integer to pad
# @param length {Integer} the length of the resulting string.
##
def pad_and_truncate (value, length)
value.to_s.rjust(length, '0').gsub(/^.*(.{#{length},}?)$/m,'\1')
def pad_and_truncate(value, length)
value.to_s.rjust(length, '0').gsub(/^.*(.{#{length},}?)$/m, '\1')
end
##