Class: ActionController::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/facebooker/rails/facebook_pretty_errors.rb,
lib/facebooker/rails/facebook_url_rewriting.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.relative_url_rootObject



9
10
11
# File 'lib/facebooker/rails/facebook_url_rewriting.rb', line 9

def self.relative_url_root
  Facebooker.path_prefix
end

Instance Method Details

#rescues_path_with_facebooker(template_name) ⇒ Object



3
4
5
6
# File 'lib/facebooker/rails/facebook_pretty_errors.rb', line 3

def rescues_path_with_facebooker(template_name)
  t="#{RAILS_ROOT}/vendor/plugins/facebooker/templates/#{template_name}.erb"
  File.exist?(t) ? t : rescues_path_without_facebooker(template_name)
end

#response_code_for_rescue(exception) ⇒ Object



10
11
12
# File 'lib/facebooker/rails/facebook_pretty_errors.rb', line 10

def response_code_for_rescue(exception)
  200
end