zh_kostev_ext 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -40,13 +40,13 @@ module ControllerExtensions
40
40
 
41
41
  #redirects to back.
42
42
  #!IMPORTANT to use this method you should add after_filter to your application_controller(after_filter :store_location)
43
- # You can specify REDIRECT_DEFAULT_PATH constant in ActionController::Base to setup default redirect path(by default REDIRECT_DEFAULT_PATH='/')
43
+ # You can specify REDIRECT_DEFAULT_PATH constant in ApplicationController to setup default redirect path(by default REDIRECT_DEFAULT_PATH='/')
44
44
  #
45
45
  # You can also pass params to redirect to method
46
46
  # Example
47
47
  # redirect_back_or_default :test_param => "test"
48
48
  def redirect_back_or_default(options = {})
49
- url = (session[:return_to] || ::REDIRECT_DEFAULT_PATH)
49
+ url = (session[:return_to] || ApplicationController::REDIRECT_DEFAULT_PATH)
50
50
  url = add_params_to_url(url, options)
51
51
  session[:return_to] = nil
52
52
  redirect_to url
@@ -78,4 +78,4 @@ module ControllerExtensions
78
78
  end
79
79
  end
80
80
  end
81
- end
81
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zh_kostev_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  segments:
138
138
  - 0
139
- hash: 1018968851
139
+ hash: -258465329
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements: