refactor(export): remove unnecessary to_sym
This commit is contained in:
parent
7f3175a07b
commit
a194616772
1 changed files with 2 additions and 2 deletions
|
@ -49,11 +49,11 @@ class Export < ApplicationRecord
|
||||||
|
|
||||||
FORMATS_WITH_TIME_SPAN = [:xlsx, :ods, :csv].flat_map do |format|
|
FORMATS_WITH_TIME_SPAN = [:xlsx, :ods, :csv].flat_map do |format|
|
||||||
time_span_types.keys.map do |time_span_type|
|
time_span_types.keys.map do |time_span_type|
|
||||||
{ format: format.to_sym, time_span_type: time_span_type }
|
{ format: format, time_span_type: time_span_type }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
FORMATS = [:xlsx, :ods, :csv].map do |format|
|
FORMATS = [:xlsx, :ods, :csv].map do |format|
|
||||||
{ format: format.to_sym }
|
{ format: format }
|
||||||
end
|
end
|
||||||
|
|
||||||
def compute_async
|
def compute_async
|
||||||
|
|
Loading…
Reference in a new issue