| Module | ActionController |
| In: |
lib/116.rb
lib/123.rb lib/20.rb lib/23.rb |
Reverse proxy fix for Rails 2.3 Fixes for the renamig of abstract_request to request
Configure the prefix on the url only if we‘re running in production mode Throws an exception if the BASE_URL constant has not been configured in config.rb
# File lib/116.rb, line 8
8: def self.check_mode_and_base
9: if RAILS_ENV == 'production'
10: begin
11: BASE_URL
12: rescue
13: raise "You need to configure your base url. See the reverse_proxy_fix/lib/config.rb file to set this value!"
14: end
15: else
16: return false
17: end
18: end
Configure the prefix on the url only if we‘re running in production mode Throws an exception if the BASE_URL constant has not been configured in config.rb
# File lib/123.rb, line 8
8: def self.check_mode_and_base
9: if RAILS_ENV == 'production'
10: begin
11: BASE_URL
12: rescue
13: raise "You need to configure your base url. See the reverse_proxy_fix/lib/config.rb file to set this value!"
14: end
15: else
16: return false
17: end
18: end
Configure the prefix on the url only if we‘re running in production mode Throws an exception if the BASE_URL constant has not been configured in config.rb
# File lib/20.rb, line 8
8: def self.check_mode_and_base
9:
10: if RAILS_ENV == 'production'
11: begin
12: BASE_URL
13: rescue
14: raise "You need to configure your base url. See the reverse_proxy_fix/lib/config.rb file to set this value!"
15: end
16: else
17: return false
18: end
19: end
Configure the prefix on the url only if we‘re running in production mode Throws an exception if the BASE_URL constant has not been configured in config.rb
# File lib/23.rb, line 9
9: def self.check_mode_and_base
10:
11: if RAILS_ENV == 'production'
12: begin
13: BASE_URL
14: rescue
15: raise "You need to configure your base url. See the reverse_proxy_fix/lib/config.rb file to set this value!"
16: end
17: else
18: return false
19: end
20: end