Skip to content

Commit

Permalink
Changed application name to Trado.
Browse files Browse the repository at this point in the history
  • Loading branch information
Billy Dallimore committed Jan 13, 2014
1 parent 2fa57f3 commit fdea546
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -4,4 +4,4 @@

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

GimsonRobotics::Application.load_tasks
Trado::Application.load_tasks
2 changes: 1 addition & 1 deletion app/models/order.rb
Expand Up @@ -47,7 +47,7 @@ def finish_order(response)
self.order_items.each do |item|
sku = Sku.find(item.sku_id)
sku.update_column(:stock, sku.stock-item.quantity)
if sku.stock == 0
if sku.stock < 1
sku.update_column(:out_of_stock, true)
end
end
Expand Down
2 changes: 1 addition & 1 deletion 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 GimsonRobotics::Application
run Trado::Application
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -9,7 +9,7 @@
# Bundler.require(:default, :assets, Rails.env)
end

module GimsonRobotics
module Trado
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
Expand Up @@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)

# Initialize the rails application
GimsonRobotics::Application.initialize!
Trado::Application.initialize!
2 changes: 1 addition & 1 deletion config/environments/development.rb
@@ -1,4 +1,4 @@
GimsonRobotics::Application.configure do
Trado::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 o
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
@@ -1,4 +1,4 @@
GimsonRobotics::Application.configure do
Trado::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
@@ -1,4 +1,4 @@
GimsonRobotics::Application.configure do
Trado::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
2 changes: 1 addition & 1 deletion config/initializers/secret_token.rb
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.
GimsonRobotics::Application.config.secret_token = '8adbe40608f75dbaf0e53bd377613df08d1c208a55f24172007bb7f3243aa5ed220a582a12184b3ff8bced3c2d1f5e83205994743b936d57d1b6a63d7b8ec48a'
Trado::Application.config.secret_token = '8adbe40608f75dbaf0e53bd377613df08d1c208a55f24172007bb7f3243aa5ed220a582a12184b3ff8bced3c2d1f5e83205994743b936d57d1b6a63d7b8ec48a'
4 changes: 2 additions & 2 deletions config/initializers/session_store.rb
@@ -1,8 +1,8 @@
# Be sure to restart your server when you modify this file.

GimsonRobotics::Application.config.session_store :cookie_store, key: '_depot_session'
Trado::Application.config.session_store :cookie_store, key: '_depot_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")
# GimsonRobotics::Application.config.session_store :active_record_store
# Trado::Application.config.session_store :active_record_store
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,4 +1,4 @@
GimsonRobotics::Application.routes.draw do
Trado::Application.routes.draw do

mount RedactorRails::Engine => '/redactor_rails'

Expand Down
Binary file modified db/development.sqlite3
Binary file not shown.

0 comments on commit fdea546

Please sign in to comment.