Sha256: fde04cdd7c9fc1d2d3c3ded192814c755c45aa7abdadf750722a2cabde3d1170

Contents?: true

Size: 1.33 KB

Versions: 7

Compression:

Stored size: 1.33 KB

Contents

# Initialize a dummy application that is required to test
# the gem that supplies some behavior to another rails application


#
# Rails
#

# Pick the frameworks you want:
require "active_model/railtie"
# require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
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)

# Define the application and configuration
module RbConfig
  class Application < ::Rails::Application
    config.eager_load = false

    # config.active_support.deprecation = :stderr
    # config.autoload_paths += %W(#{config.root}/app/controllers/concerns)

    path_secrets_config = File.join(File.dirname(__FILE__), "secrets.yml")
    config.secret_key_base = YAML.load(File.open(path_secrets_config))[Rails.env]['secret_key_base']
  end
end

# Initialize the application
RbConfig::Application.initialize!


#
# Mongoid
#

require "mongoid"

path_to_mongoid_config = File.join(File.dirname(__FILE__), "mongoid.yml")
Mongoid.load!(path_to_mongoid_config)


#
# Kaminari
#

require "kaminari"
Kaminari::Hooks.init


#
# Character
#

require "character"

RbConfig::Application.routes.draw do
  mount_character_instance
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 test/config/application.rb
character-1.0.5 test/config/application.rb
character-1.0.4 test/config/application.rb
character-1.0.3 test/config/application.rb
character-1.0.2 test/config/application.rb
character-1.0.1 test/config/application.rb
character-1.0.0 test/config/application.rb