# File lib/meta_search/helpers/form_builder.rb, line 105 def checks(method, choices = [], options = {}, &block) unless choices.first.respond_to?(:first) && choices.first.respond_to?(:last) raise ArgumentError, 'invalid choice array specified' end collection_checks(method, choices, :last, :first, options, &block) end