mirror of
https://github.com/internetee/registry.git
synced 2025-06-05 12:17:30 +02:00
strong params removed
This commit is contained in:
parent
7be7282d89
commit
ce218c34b9
2 changed files with 1 additions and 7 deletions
|
@ -26,11 +26,5 @@ module Admin
|
|||
render 'edit'
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def account_params
|
||||
params.require(:account).permit(:id, :currency, :balance)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -21,7 +21,7 @@ module Actions
|
|||
end
|
||||
|
||||
def validate_new_balance
|
||||
return if @new_balance.blank?
|
||||
@error = true and return if @new_balance.blank?
|
||||
|
||||
begin
|
||||
!Float(@new_balance).nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue