class ActionController::Base

Public Instance Methods

pretty_facebook_errors?() click to toggle 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
rescues_path_with_facebooker(template_name) click to toggle 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
response_code_for_rescue_with_facebooker(exception) click to toggle 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

Public Class Methods

inherited_with_facebooker(subclass) click to toggle source
# File lib/facebooker/rails/extensions/action_controller.rb, line 3
def self.inherited_with_facebooker(subclass)
  inherited_without_facebooker(subclass)
  if subclass.to_s == "ApplicationController"
    subclass.send(:include,Facebooker::Rails::Controller) 
    subclass.helper Facebooker::Rails::Helpers
  end
end
old_relative_url_root() click to toggle source
Alias for: relative_url_root
relative_url_root() click to toggle source
# File lib/facebooker/rails/facebook_url_rewriting.rb, line 19
def relative_url_root
  Facebooker.path_prefix
end
Also aliased as: old_relative_url_root