app/controllers/search_notes_controller.rb
# Defaults are set in the query class
Defaults are set in the query class
Defaults are set in the query class
def query_from_safe_params(safe_params)
    {
      start_time: Time.at(safe_params[:start_time].to_i),
      end_time: Time.at(safe_params[:end_time].to_i),
      limit: safe_params[:limit].to_i,
      scope_key: safe_params[:scope_key],
      text: safe_params[:text],
      grade: safe_params[:grade],
      house: safe_params[:house],
      event_note_type_id: safe_params[:event_note_type_id],
    }
  end
def query_from_safe_params ( safe_params ) { start_time : Time . at ( safe_params [ :start_time ] . to_i ) , end_time : Time . at ( safe_params [ :end_time ] . to_i ) , limit : safe_params [ :limit ] . to_i , scope_key : safe_params [ :scope_key ] , text : safe_params [ :text ] , grade : safe_params [ :grade ] , house : safe_params [ :house ] , event_note_type_id : safe_params [ :event_note_type_id ] , } end
Defaults are set in the query class
Defaults are set in the query class
safe_params
<not_specific>