This commit is contained in:
Miha Mencin 2020-03-18 10:35:31 +01:00
parent ecd49cb1e7
commit fd8462b008
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,7 @@ class RepositoryDateTimeValue < RepositoryDateTimeValueBase
end
def export_formatted
I18n.l(data, format: :full )
I18n.l(data, format: :full)
end
def self.new_with_payload(payload, attributes)
@ -28,5 +28,4 @@ class RepositoryDateTimeValue < RepositoryDateTimeValueBase
rescue ArgumentError
nil
end
end

View file

@ -18,7 +18,7 @@ class RepositoryTimeValue < RepositoryDateTimeValueBase
value
end
def self.import_from_text(text, attributes, options = {})
def self.import_from_text(text, attributes, _options = {})
time_format = '%H:%M'
new(attributes.merge(data: DateTime.strptime(text, time_format).strftime(time_format)))
rescue ArgumentError