Module: WithPopup::TestHelpers::Controller

Defined in:
lib/with_popup/test_helpers/controller.rb

Instance Method Summary collapse

Instance Method Details

#with_popup_is_closing?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/with_popup/test_helpers/controller.rb', line 8

def with_popup_is_closing?
  session[:_with_popup] == :close
end

#with_popup_reloading_pathObject



4
5
6
# File 'lib/with_popup/test_helpers/controller.rb', line 4

def with_popup_reloading_path
  session[:_with_popup] == :close ? nil : session[:_with_popup]
end