Module: Facepalm::Rails::Controller

Defined in:
lib/facepalm/rails/controller.rb,
lib/facepalm/rails/controller/redirects.rb,
lib/facepalm/rails/controller/oauth_access.rb,
lib/facepalm/rails/controller/url_rewriting.rb

Overview

Rails application controller extension

Defined Under Namespace

Modules: OauthAccess, Redirects, UrlRewriting

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/facepalm/rails/controller.rb', line 10

def self.included(base)
  base.class_eval do
    include Facepalm::Rails::Controller::OauthAccess
    include Facepalm::Rails::Controller::UrlRewriting
    include Facepalm::Rails::Controller::Redirects

    # Fix cookie permission issue in IE
    before_filter :normal_cookies_for_ie_in_iframes!

    helper_method(:facepalm, :fb_signed_request, :current_facebook_user, :params_without_facebook_data)

    helper Facepalm::Rails::Helpers
  end
end