class SearchForm
Public Class Methods
Source
# File app/forms/search_form.rb, line 6 def initialize(request_path:, request_session:, **attributes) @request_path = request_path # An empty string represents the "Any" option. has_query_parameters = attributes.any? { it.present? || it == "" || it == [] } request_session[request_session_key] = {} if has_query_parameters super(request_session:, **attributes.except("_clear")) save! if has_query_parameters end
Calls superclass method
RequestSessionPersistable::new