Method: ActionController::Base#rescues_path_with_facebooker

Defined in:
lib/facebooker/rails/facebook_pretty_errors.rb

#rescues_path_with_facebooker(template_name) ⇒ Object



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

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