Permalink
Browse files

Changed application name to Trado.

  • Loading branch information...
1 parent 2fa57f3 commit fdea5467b87013f6fbd56747f7fad3549b789287 Billy Dallimore committed Jan 13, 2014
View
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
-GimsonRobotics::Application.load_tasks
+Trado::Application.load_tasks
View
@@ -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
View
@@ -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
@@ -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
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-GimsonRobotics::Application.initialize!
+Trado::Application.initialize!
@@ -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
@@ -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
@@ -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
@@ -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'
@@ -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
View
@@ -1,4 +1,4 @@
-GimsonRobotics::Application.routes.draw do
+Trado::Application.routes.draw do
mount RedactorRails::Engine => '/redactor_rails'
View
Binary file not shown.

0 comments on commit fdea546

Please sign in to comment.