mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 00:41:42 +00:00
refactorizacion
This commit is contained in:
parent
13561a5f71
commit
52f446fcf1
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ module Api
|
|||
#
|
||||
# TODO: Aplicar rate_limit
|
||||
def create
|
||||
csp = CspReport.new(csp_report_params.to_h.map do |k, v|
|
||||
[k.tr('-', '_'), v]
|
||||
end.to_h)
|
||||
csp = CspReport.new(csp_report_params.to_h.transform_keys do |k|
|
||||
k.tr('-', '_')
|
||||
end)
|
||||
|
||||
csp.id = SecureRandom.uuid
|
||||
csp.save
|
||||
|
|
Loading…
Reference in a new issue