From 227a56c555247856bd8d4328cfb8e186d23a7293 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 23 May 2017 19:59:01 +0000 Subject: [PATCH] Rename app internally from PlanCharacters to Notebook --- app/services/service.rb | 2 ++ config.ru | 2 +- config/application.rb | 3 ++- config/environments/development.rb | 2 +- config/initializers/session_store.rb | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 app/services/service.rb diff --git a/app/services/service.rb b/app/services/service.rb new file mode 100644 index 00000000..50b6e53f --- /dev/null +++ b/app/services/service.rb @@ -0,0 +1,2 @@ +class Service +end \ No newline at end of file diff --git a/config.ru b/config.ru index 5b430ced..44de328b 100644 --- a/config.ru +++ b/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. require ::File.expand_path('../config/environment', __FILE__) -run PlanCharacters::Application +run Notebook::Application diff --git a/config/application.rb b/config/application.rb index a5a18106..f07e9743 100644 --- a/config/application.rb +++ b/config/application.rb @@ -7,10 +7,11 @@ require 'csv' # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) -module PlanCharacters +module Notebook # Default application environment configurations class Application < Rails::Application config.autoload_paths += Dir[Rails.root.join('app', 'models', '{*/}')] + config.autoload_paths += Dir[Rails.root.join('app', 'services', '{*/}')] # 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 diff --git a/config/environments/development.rb b/config/environments/development.rb index 84302a68..bbc17194 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -PlanCharacters::Application.configure do +Notebook::Application.configure do # Settings specified here will take precedence over those in config/application.rb # In the development environment your application's code is reloaded on diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 2f1b8c12..f436fc76 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,10 +1,10 @@ # Be sure to restart your server when you modify this file. -PlanCharacters::Application +Notebook::Application .config.session_store :cookie_store, key: '_plan_characters_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information # (create the session table with "rails generate session_migration") -# PlanCharacters::Application.config.session_store :active_record_store +# Notebook::Application.config.session_store :active_record_store