mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 20:55:44 +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'
|
render 'edit'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
def account_params
|
|
||||||
params.require(:account).permit(:id, :currency, :balance)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,7 +21,7 @@ module Actions
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate_new_balance
|
def validate_new_balance
|
||||||
return if @new_balance.blank?
|
@error = true and return if @new_balance.blank?
|
||||||
|
|
||||||
begin
|
begin
|
||||||
!Float(@new_balance).nil?
|
!Float(@new_balance).nil?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue