All Files
(100.0%
covered at
1.0
hits/line)
13 files in total.
32 relevant lines.
32 lines covered and
0 lines missed
-
1
require File.expand_path('../boot', __FILE__)
-
-
1
require 'rails/all'
-
-
# Require the gems listed in Gemfile, including any gems
-
# you've limited to :test, :development, or :production.
-
1
Bundler.require(*Rails.groups)
-
-
1
module BaseRailsApp
-
1
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
-
end
-
end
-
# Set up gems listed in the Gemfile.
-
1
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-
-
1
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
-
# Load the Rails application
-
1
require File.expand_path('../application', __FILE__)
-
-
# Initialize the Rails application
-
1
Rails.application.initialize!
-
1
Rails.application.configure do
-
# Settings specified here will take precedence over those in config/application.rb
-
-
# The test environment is used exclusively to run your application's
-
# test suite. You never need to work with it otherwise. Remember that
-
# your test database is "scratch space" for the test suite and is wiped
-
# and recreated between test runs. Don't rely on the data there!
-
1
config.cache_classes = true
-
-
# Do not eager load code on boot. This avoids loading your whole application
-
# just for the purpose of running a single test. If you are using a tool that
-
# preloads Rails for running tests, you may have to set it to true.
-
1
config.eager_load = false
-
-
# Configure static asset server for tests with Cache-Control for performance.
-
1
config.serve_static_assets = true
-
1
config.static_cache_control = "public, max-age=3600"
-
-
# Show full error reports and disable caching
-
1
config.consider_all_requests_local = true
-
1
config.action_controller.perform_caching = false
-
-
# Raise exceptions instead of rendering exception templates
-
1
config.action_dispatch.show_exceptions = false
-
-
# Disable request forgery protection in test environment
-
1
config.action_controller.allow_forgery_protection = false
-
-
# Tell Action Mailer not to deliver emails to the real world.
-
# The :test delivery method accumulates sent emails in the
-
# ActionMailer::Base.deliveries array.
-
1
config.action_mailer.delivery_method = :test
-
-
# Print deprecation notices to the stderr
-
1
config.active_support.deprecation = :stderr
-
-
# Raises error for missing translations
-
# config.action_view.raise_on_missing_translations = true
-
end
-
# Be sure to restart your server when you modify this file.
-
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-
# Rails.backtrace_cleaner.remove_silencers!
-
# Be sure to restart your server when you modify this file.
-
-
1
Rails.application.config.action_dispatch.cookies_serializer = :json
-
# Be sure to restart your server when you modify this file.
-
-
# Configure sensitive parameters which will be filtered from the log file.
-
1
Rails.application.config.filter_parameters += [:password]
-
# Be sure to restart your server when you modify this file.
-
-
# Add new inflection rules using the following format. Inflections
-
# are locale specific, and you may define rules for as many different
-
# locales as you wish. All of these examples are active by default:
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
-
# inflect.plural /^(ox)$/i, '\1en'
-
# inflect.singular /^(ox)en/i, '\1'
-
# inflect.irregular 'person', 'people'
-
# inflect.uncountable %w( fish sheep )
-
# end
-
-
# These inflection rules are supported but not enabled by default:
-
# ActiveSupport::Inflector.inflections(:en) do |inflect|
-
# inflect.acronym 'RESTful'
-
# end
-
Konacha.configure do |config|
-
1
require 'capybara/poltergeist'
-
-
1
config.spec_dir = "spec/javascripts"
-
1
config.spec_matcher = /_spec\.|_test\./
-
1
config.stylesheets = %w(application)
-
1
config.driver = :poltergeist
-
1
end if defined?(Konacha)
-
# Be sure to restart your server when you modify this file.
-
-
# Add new mime types for use in respond_to blocks:
-
# Mime::Type.register "text/richtext", :rtf
-
# Mime::Type.register_alias "text/html", :iphone
-
# Be sure to restart your server when you modify this file.
-
-
1
Rails.application.config.session_store :cookie_store, key: '_base_rails_app_session'
-
# Be sure to restart your server when you modify this file.
-
-
# This file contains settings for ActionController::ParamsWrapper which
-
# is enabled by default.
-
-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
-
1
ActiveSupport.on_load(:action_controller) do
-
1
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
-
end
-
-
# To enable root element in JSON for ActiveRecord objects.
-
# ActiveSupport.on_load(:active_record) do
-
# self.include_root_in_json = true
-
# end
-
1
Rails.application.routes.draw do
-
# The priority is based upon order of creation: first created -> highest priority.
-
# See how all your routes lay out with "rake routes".
-
-
# You can have the root of your site routed with "root"
-
# root 'welcome#index'
-
-
# Example of regular route:
-
# get 'products/:id' => 'catalog#view'
-
-
# Example of named route that can be invoked with purchase_url(id: product.id)
-
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
-
-
# Example resource route (maps HTTP verbs to controller actions automatically):
-
# resources :products
-
-
# Example resource route with options:
-
# resources :products do
-
# member do
-
# get 'short'
-
# post 'toggle'
-
# end
-
#
-
# collection do
-
# get 'sold'
-
# end
-
# end
-
-
# Example resource route with sub-resources:
-
# resources :products do
-
# resources :comments, :sales
-
# resource :seller
-
# end
-
-
# Example resource route with more complex sub-resources:
-
# resources :products do
-
# resources :comments
-
# resources :sales do
-
# get 'recent', on: :collection
-
# end
-
# end
-
-
# Example resource route with concerns:
-
# concern :toggleable do
-
# post 'toggle'
-
# end
-
# resources :posts, concerns: :toggleable
-
# resources :photos, concerns: :toggleable
-
-
# Example resource route within a namespace:
-
# namespace :admin do
-
# # Directs /admin/products/* to Admin::ProductsController
-
# # (app/controllers/admin/products_controller.rb)
-
# resources :products
-
# end
-
end