Created
November 5, 2013 18:30
-
-
Save rafael/7323718 to your computer and use it in GitHub Desktop.
Include a module into action controller when loading a gem.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Engine < Rails::Engine | |
| initializer 'imprenta.controller_methods' do |app| | |
| ActionController::Base.send :include, Imprenta::CachePage | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment