Skip to content

Commit

Permalink
Rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pmor committed Feb 17, 2024
1 parent 7832527 commit 63fdf09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/country_select/country_select_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63fdf09

Please sign in to comment.