Skip to content

Instantly share code, notes, and snippets.

@cowboycoded
Created April 11, 2011 18:49
Show Gist options
  • Save cowboycoded/914040 to your computer and use it in GitHub Desktop.
Save cowboycoded/914040 to your computer and use it in GitHub Desktop.
require "lock"
require "rails"
module Lock
class Engine < Rails::Engine
initializer "lock.extend_application_controller" do
ActiveSupport.on_load(:action_controller) do
include LockApplicationController::InstanceMethods
extend LockApplicationController::ClassMethods
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment