Commit 036a47d1 authored by Arturo Herrero's avatar Arturo Herrero

Replace cast with to_boolean method

parent 88edbd78
...@@ -16,7 +16,7 @@ module IntegrationsActions ...@@ -16,7 +16,7 @@ module IntegrationsActions
def update def update
saved = integration.update(service_params[:service]) saved = integration.update(service_params[:service])
overwrite = ActiveRecord::Type::Boolean.new.cast(params[:overwrite]) overwrite = Gitlab::Utils.to_boolean(params[:overwrite])
respond_to do |format| respond_to do |format|
format.html do format.html do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment