Class ActionController::Base
In: lib/facebooker/rails/facebook_pretty_errors.rb
Parent: Object

Methods

Public Instance methods

[Source]

# File lib/facebooker/rails/facebook_pretty_errors.rb, line 18
  def pretty_facebook_errors?
    Facebooker.facebooker_config['pretty_errors'] ||
      (Facebooker.facebooker_config['pretty_errors'].nil? && RAILS_ENV=="development")
  end

[Source]

# 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

[Source]

# File lib/facebooker/rails/facebook_pretty_errors.rb, line 12
  def response_code_for_rescue_with_facebooker(exception)
    pretty_facebook_errors? ? 200 : response_code_for_rescue_without_facebooker(exception)
  end

[Validate]