mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Rename application from Openfoodweb to Openfoodnetwork
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -4,4 +4,4 @@
|
||||
|
||||
require File.expand_path('../config/application', __FILE__)
|
||||
|
||||
Openfoodweb::Application.load_tasks
|
||||
Openfoodnetwork::Application.load_tasks
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Openfoodweb::Application.routes.draw do
|
||||
Openfoodnetwork::Application.routes.draw do
|
||||
root :to => 'home#temp_landing_page'
|
||||
|
||||
resources :enterprises do
|
||||
|
||||
Reference in New Issue
Block a user