mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Fix CC issues
This commit is contained in:
parent
d4dc39bf22
commit
11d97358c1
16 changed files with 78 additions and 60 deletions
|
@ -81,7 +81,9 @@ module Admin
|
|||
]
|
||||
|
||||
allowed = params.require(:price).permit(*allowed_params)
|
||||
allowed[:duration] = ActiveSupport::Duration.build(allowed[:duration].to_i) if allowed[:duration]
|
||||
if allowed[:duration]
|
||||
allowed[:duration] = ActiveSupport::Duration.build(allowed[:duration].to_i)
|
||||
end
|
||||
allowed
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue