Skip to content

Instantly share code, notes, and snippets.

@tanraya
Created February 5, 2014 14:55
Show Gist options
  • Save tanraya/8825384 to your computer and use it in GitHub Desktop.
Save tanraya/8825384 to your computer and use it in GitHub Desktop.
module Papillon
class Railtie < Rails::Railtie
initializer "papillon.action_controller" do
ActiveSupport.on_load(:action_controller) do
ActionController::Base.send :include, Papillon::Controller
end
end
end
end
require "papillon/railtie"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment