Skip to content

Commit

Permalink
completing naming switch from 'Formula' to 'Recipe'. Fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
wrburgess committed May 8, 2013
1 parent 51d07d8 commit fb7774f
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require File.expand_path('../config/application', __FILE__)

Recipe::Application.load_tasks
RecipeServer::Application.load_tasks
Empty file removed app/models/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is used by Rack-based servers to start the application.

require ::File.expand_path('../config/environment', __FILE__)
run Recipe::Application
run RecipeServer::Application
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Bundler.require(:default, :assets, Rails.env)
end

module Recipe
module RecipeServer
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)

# Initialize the rails application
Recipe::Application.initialize!
RecipeServer::Application.initialize!
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Recipe::Application.configure do
RecipeServer::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
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Recipe::Application.configure do
RecipeServer::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

# Code is not reloaded between requests
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Recipe::Application.configure do
RecipeServer::Application.configure do
# Settings specified here will take precedence over those in config/application.rb

# Code is not reloaded between requests
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Recipe::Application.configure do
RecipeServer::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
Expand Down
4 changes: 4 additions & 0 deletions config/initializers/inflections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
# ActiveSupport::Inflector.inflections do |inflect|
# inflect.acronym 'RESTful'
# end

ActiveSupport::Inflector.inflections do |inflect|
inflect.irregular 'recipe', 'recipes'
end
2 changes: 1 addition & 1 deletion config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Recipe::Application.config.secret_token = '9d352420d6aba7a7f6f519dca54dbcca01d0c05fbeda9dd37568406188b70b58c44fc3b3f969aca4ea51803eb2b2ff64485aea445d6628958d23b79ab9d6a1ff'
RecipeServer::Application.config.secret_token = '9d352420d6aba7a7f6f519dca54dbcca01d0c05fbeda9dd37568406188b70b58c44fc3b3f969aca4ea51803eb2b2ff64485aea445d6628958d23b79ab9d6a1ff'
2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.

Recipe::Application.config.session_store :cookie_store, key: '_recipe_session'
RecipeServer::Application.config.session_store :cookie_store, key: '_recipe_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Recipe::Application.routes.draw do
RecipeServer::Application.routes.draw do

namespace :admin do

Expand Down

0 comments on commit fb7774f

Please sign in to comment.