Sha256: 577e2ba2eeb96a90891d5b63bf25f39252768fdf53c2676ad06fb1f1c4a2941c

Contents?: true

Size: 423 Bytes

Versions: 52

Compression:

Stored size: 423 Bytes

Contents

ActionController::Base.send :class_eval do
  protected
  def default_path options = {}
    url_for_path SETTING.default_path!, options.merge(:no_prefix => true)
  end

  def return_to_path options = {}
    do_not_persist_params do 
      url_for_path params[:_return_to] || session[:return_to] || SETTING.default_path!, options.merge(:no_prefix => true)
    end
  end
    
  helper_method :default_path, :return_to_path
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
crystal-ext-0.0.3 lib/rails_ext/action_controller/redirect_helper.rb
crystal-ext-0.0.2 lib/rails_ext/action_controller/redirect_helper.rb
crystal-ext-0.0.1 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.29 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.28 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.27 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.25 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.24 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.23 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.22 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.21 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.20 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.19 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.18 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.17 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.16 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.15 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.14 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.13 lib/rails_ext/action_controller/redirect_helper.rb
rails-ext-0.3.12 lib/rails_ext/action_controller/redirect_helper.rb