Sha256: b0ddd8a49f19ca5b4e1e103b30b5089013945e3954eb313711ed9783f2b0a420

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module JumpBack
  
  module Redirection
    
    def redirect_back(path=root_path, options={})
      options = OptionsParser.new(path: path, options: options, default: root_path)
      redirect_to PathFinder.new(request, options.path, options.jump_back_options).path, options.redirect_options
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jump_back-0.3.2 lib/jump_back/redirect_back.rb
jump_back-0.3.1 lib/jump_back/redirect_back.rb