Skip to content

Instantly share code, notes, and snippets.

@RohitRox
Created June 18, 2015 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RohitRox/55548d8751943b5cabbf to your computer and use it in GitHub Desktop.
Save RohitRox/55548d8751943b5cabbf to your computer and use it in GitHub Desktop.
My Rails application.rb
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
# Load configs from config/application.yml
# config/application.yml
# default: &default
# api_keys:
# honeybadger: XOXOXOXO
# development:
# <<: *default
# test:
# <<: *default
# production:
# <<: *default
# api_keys:
# honeybadger: XOXOXOXO
APP_CONFIG = HashWithIndifferentAccess.new(YAML.load_file('config/application.yml')[Rails.env]) rescue {}
module ConciergeRails
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# autoload lib files
config.autoload_paths << Rails.root.join('lib')
config.action_view.embed_authenticity_token_in_remote_forms = true
config.generators do |g|
g.assets = false
g.helper = false
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment