Skip to content

Instantly share code, notes, and snippets.

@johnmcaliley
Created September 21, 2011 03:02
Show Gist options
  • Save johnmcaliley/1231112 to your computer and use it in GitHub Desktop.
Save johnmcaliley/1231112 to your computer and use it in GitHub Desktop.
require "acts_as_charlie_sheen"
require "rails"
module ActsAsCharlieSheen
class Railtie < Rails::Railtie
initializer 'acts_as_charlie_sheen.ar_extensions' do |app|
ActiveRecord::Base.extend ActsAsCharlieSheen::Base
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment