diff --git a/Rakefile b/Rakefile index a471e0e666..699faf6e9d 100644 --- a/Rakefile +++ b/Rakefile @@ -4,4 +4,4 @@ require File.expand_path('../config/application', __FILE__) -Openfoodweb::Application.load_tasks +Openfoodnetwork::Application.load_tasks diff --git a/config.ru b/config.ru index 9493e5c08f..c214fb16df 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 Openfoodweb::Application +run Openfoodnetwork::Application diff --git a/config/application.rb b/config/application.rb index 93317e246f..09a32edf6a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -9,7 +9,7 @@ if defined?(Bundler) # Bundler.require(:default, :assets, Rails.env) end -module Openfoodweb +module Openfoodnetwork class Application < Rails::Application config.to_prepare do diff --git a/config/environment.rb b/config/environment.rb index 1f378fcf8b..9f6b854161 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -2,6 +2,6 @@ require File.expand_path('../application', __FILE__) # Initialize the rails application -Openfoodweb::Application.initialize! +Openfoodnetwork::Application.initialize! ActiveRecord::Base.include_root_in_json = true diff --git a/config/environments/development.rb b/config/environments/development.rb index 82599dd78a..c90b82ca82 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -1,4 +1,4 @@ -Openfoodweb::Application.configure do +Openfoodnetwork::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/environments/production.rb b/config/environments/production.rb index d874869398..e02b8f942d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -Openfoodweb::Application.configure do +Openfoodnetwork::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/config/environments/staging.rb b/config/environments/staging.rb index d874869398..e02b8f942d 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -1,4 +1,4 @@ -Openfoodweb::Application.configure do +Openfoodnetwork::Application.configure do # Settings specified here will take precedence over those in config/application.rb # Code is not reloaded between requests diff --git a/config/environments/test.rb b/config/environments/test.rb index 7b7811ff75..483ed4960c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,4 +1,4 @@ -Openfoodweb::Application.configure do +Openfoodnetwork::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 diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index ccaa0cebad..fcd0a6dda4 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Openfoodweb::Application.config.secret_token = '6d784d49173d0ec820f20cfce151717bd12570e9d261460e9d3c295b90c1fd81e3843eb1bec79d9e6d4a7f04d0fd76170ca0c326ffb0f2da5b7a0b50c7442a4c' +Openfoodnetwork::Application.config.secret_token = '6d784d49173d0ec820f20cfce151717bd12570e9d261460e9d3c295b90c1fd81e3843eb1bec79d9e6d4a7f04d0fd76170ca0c326ffb0f2da5b7a0b50c7442a4c' diff --git a/config/initializers/session_store.rb b/config/initializers/session_store.rb index 1981ff81f3..f77c989432 100644 --- a/config/initializers/session_store.rb +++ b/config/initializers/session_store.rb @@ -1,8 +1,8 @@ # Be sure to restart your server when you modify this file. -Openfoodweb::Application.config.session_store :cookie_store, key: '_openfoodweb_session' +Openfoodnetwork::Application.config.session_store :cookie_store, key: '_openfoodweb_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") -# Openfoodweb::Application.config.session_store :active_record_store +# Openfoodnetwork::Application.config.session_store :active_record_store diff --git a/config/routes.rb b/config/routes.rb index b91b96c872..b5ebed91b3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -Openfoodweb::Application.routes.draw do +Openfoodnetwork::Application.routes.draw do root :to => 'home#temp_landing_page' resources :enterprises do