Class: Ransack::Search

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_form_ransack/ransack_search_monkey_patch.rb

Overview

This saves the params given to Ransack, so they can be recalled later

Instance Method Summary collapse

Instance Method Details

#build(params = {}) ⇒ Object



13
14
15
16
# File 'lib/simple_form_ransack/ransack_search_monkey_patch.rb', line 13

def build(params = {})
  @_registered_params = params
  old_build(params)
end

#old_buildObject



11
# File 'lib/simple_form_ransack/ransack_search_monkey_patch.rb', line 11

alias old_build build