def activatable? attributes = {}
      return false unless search_value.present?

      attributes = attributes.with_indifferent_access
      current_search_value = attributes[search_key]

      if current_search_value.is_a?(Regexp) || search_value.is_a?(Regexp)
        return false if current_search_value.blank?

        current_search_value.match? search_value
      else
        current_search_value == search_value
      end
    end
def activatable? attributes = {}
      return false unless search_value.present?

      attributes = attributes.with_indifferent_access
      current_search_value = attributes[search_key]

      if current_search_value.is_a?(Regexp) || search_value.is_a?(Regexp)
        return false if current_search_value.blank?

        current_search_value.match? search_value
      else
        current_search_value == search_value
      end
    end
rubocop:disable Metrics/ParameterLists
 rubocop:enable Metrics/ParameterLists
 :reek:TooManyStatements