mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
codstyle
This commit is contained in:
parent
ecd49cb1e7
commit
fd8462b008
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue