Module: SimplyTestable::ActionControllerExtension::AccessibleViaUser::InstanceMethods

Defined in:
lib/simply_testable/action_controller_extension/accessible_via_user.rb

Instance Method Summary collapse

Instance Method Details

#nawil_redirection(options = {}) ⇒ Object

This needs to be static and not dynamic or the multiple calls that would create it would overwrite each other.



13
14
15
16
17
18
19
# File 'lib/simply_testable/action_controller_extension/accessible_via_user.rb', line 13

def nawil_redirection(options={})
	if options[:redirect]
		send(options[:redirect])
	else
		root_path
	end
end