From 63fdf094b06ed0d26911070b2d37deb49f324d21 Mon Sep 17 00:00:00 2001 From: Pedro Moreira Date: Sat, 17 Feb 2024 17:20:01 +0000 Subject: [PATCH] Rubocop issues --- lib/country_select/country_select_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/country_select/country_select_helper.rb b/lib/country_select/country_select_helper.rb index 2840b2d..7e5ae89 100644 --- a/lib/country_select/country_select_helper.rb +++ b/lib/country_select/country_select_helper.rb @@ -4,7 +4,10 @@ module ActionView module Helpers class FormBuilder def country_select(method, options = {}, html_options = {}) - raise ArgumentError, "Invalid syntax for country_select method. options must be a hash" unless options.is_a?(Hash) + unless options.is_a?(Hash) + raise ArgumentError, 'Invalid syntax for country_select method. options must be a hash' + end + @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options)) end end