Skip to content

Instantly share code, notes, and snippets.

@samiron
Created September 11, 2012 04:10
Show Gist options
  • Save samiron/3695897 to your computer and use it in GitHub Desktop.
Save samiron/3695897 to your computer and use it in GitHub Desktop.
Sample of Rails config/application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
require 'rails_autolink' #THIS IS THE PLACE YOU NEED TO ADD
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
module YOUR_RAILS_APP_NAME
class Application < Rails::Application
# .. ... ...
# .. Other stuffs goes here ...
# .. ... ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment