mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 08:33:38 +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
|
# TODO: Aplicar rate_limit
|
||||||
def create
|
def create
|
||||||
csp = CspReport.new(csp_report_params.to_h.map do |k, v|
|
csp = CspReport.new(csp_report_params.to_h.transform_keys do |k|
|
||||||
[k.tr('-', '_'), v]
|
k.tr('-', '_')
|
||||||
end.to_h)
|
end)
|
||||||
|
|
||||||
csp.id = SecureRandom.uuid
|
csp.id = SecureRandom.uuid
|
||||||
csp.save
|
csp.save
|
||||||
|
|
Loading…
Reference in a new issue