Sha256: 97f6131d20ac68e2e7a1f15744ce7b71f880f77ac6caa4bd864a625248d745aa

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

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(:default, Rails.env)

module ViewPathsSystemSpec
  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

    new_path = Rails.root.join('view_path_one')
    if ::Rails.version =~ /^3\.0\./
      config.paths.app.views.unshift(new_path)
    else
      config.paths['app/views'].unshift(new_path)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fortitude-0.9.6-java spec/rails/templates/view_paths_system_spec/config/application.rb
fortitude-0.9.6 spec/rails/templates/view_paths_system_spec/config/application.rb
fortitude-0.9.5-java spec/rails/templates/view_paths_system_spec/config/application.rb
fortitude-0.9.5 spec/rails/templates/view_paths_system_spec/config/application.rb