Sha256: 72fac92ba4a72bf04a91f3d54ae13defc68ff55dd2adc4e5219079b6bdf85e79

Contents?: true

Size: 1.34 KB

Versions: 13

Compression:

Stored size: 1.34 KB

Contents

require File.expand_path('../boot', __FILE__)

# Pick the frameworks you want:
require "active_model/railtie"
#{'#' if Hancock.mongoid?} require "active_record/railtie"
require "action_controller/railtie"
# require "action_mailer/railtie" # mailer is off by default
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module #{app_name.camelize}
  class Application < Rails::Application
    config.generators do |g|
      g.test_framework :rspec
      g.view_specs false
      g.helper_specs false
      g.feature_specs false
      g.template_engine :slim
      g.stylesheets false
      g.javascripts false
      g.helper false
      g.fixture_replacement :factory_girl, :dir => 'spec/factories'
    end

    config.i18n.locale = :ru
    config.i18n.default_locale = :ru
    config.i18n.available_locales = [:ru, :en]
    config.i18n.enforce_available_locales = true
    #{'config.active_record.schema_format = :sql' if Hancock.active_record?}

    #{'config.autoload_paths += %W(#{config.root}/extra)'}
    #{'config.eager_load_paths += %W(#{config.root}/extra)'}

    config.time_zone = 'Europe/Moscow'
    config.assets.paths << Rails.root.join("app", "assets", "fonts")
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hancock_cms-2.0.1.3 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.2.3 lib/generators/hancock/cms/templates/application.erb
hancock_cms-2.0.1.2 lib/generators/hancock/cms/templates/application.erb
hancock_cms-2.0.1.1 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.2.2 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.1 lib/generators/hancock/cms/templates/application.erb
hancock_cms-2.0.0.2 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.0.4 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.0.3 lib/generators/hancock/cms/templates/application.erb
hancock_cms-2.0.0.1 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.0.2 lib/generators/hancock/cms/templates/application.erb
hancock_cms-2.0.0 lib/generators/hancock/cms/templates/application.erb
hancock_cms-1.0.0 lib/generators/hancock/cms/templates/application.erb