Skip to content

Instantly share code, notes, and snippets.

@johnmcaliley
Created September 20, 2011 01:23
Show Gist options
  • Save johnmcaliley/1228080 to your computer and use it in GitHub Desktop.
Save johnmcaliley/1228080 to your computer and use it in GitHub Desktop.
require 'rails'
require 'my_gem'
module MyGem
class Railtie < Rails::Railtie
initializer "my_gem.setup!", :before=>"some_initializer" do |app|
MyGem.setup!
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment