Skip to content

Instantly share code, notes, and snippets.

@theleoborges
Created January 22, 2011 05:11
Show Gist options
  • Save theleoborges/790878 to your computer and use it in GitHub Desktop.
Save theleoborges/790878 to your computer and use it in GitHub Desktop.
upgrading-appconstants-to-rails-3#0
class AppConstantsGenerator < Rails::Generator::Base
def manifest
record do |m|
m.directory('config')
m.file('constants.yml', 'config/constants.yml')
m.directory('config/initializers')
m.file('load_app_constants.rb', 'config/initializers/load_app_constants.rb')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment