Permalink
Browse files

rename app module

  • Loading branch information...
1 parent d904864 commit 6862987da99fdba16e364a128268f37e30153171 @yannlugrin yannlugrin committed Mar 7, 2012
View
@@ -4,4 +4,4 @@
require File.expand_path('../config/application', __FILE__)
-Stopwatch::Application.load_tasks
+StopWatch::Application.load_tasks
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 Stopwatch::Application
+run StopWatch::Application
View
@@ -15,7 +15,7 @@
# Bundler.require(:default, :assets, Rails.env)
end
-module Stopwatch
+module StopWatch
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
View
@@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)
# Initialize the rails application
-Stopwatch::Application.initialize!
+StopWatch::Application.initialize!
@@ -1,6 +1,6 @@
require 'faye'
-Stopwatch::Application.configure do
+StopWatch::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,7 +1,7 @@
require 'faye'
require 'faye/redis'
-Stopwatch::Application.configure do
+StopWatch::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Code is not reloaded between requests
@@ -1,7 +1,7 @@
require 'faye'
require 'faye/redis'
-Stopwatch::Application.configure do
+StopWatch::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 @@
-Stopwatch::Application.configure do
+StopWatch::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.
-Stopwatch::Application.config.secret_token = '1748e28c51e872f9c683fd4574d8c458883735f919a50e09fa593e6f4a146eca4f8840e93a949d2943ebc7bd785479b1a2c97e600d7aa6677a1358c2556577f4'
+StopWatch::Application.config.secret_token = '1748e28c51e872f9c683fd4574d8c458883735f919a50e09fa593e6f4a146eca4f8840e93a949d2943ebc7bd785479b1a2c97e600d7aa6677a1358c2556577f4'
@@ -1,6 +1,6 @@
if Rails.env.production? || Rails.env.staging?
require 'action_dispatch/middleware/session/dalli_store'
- Stopwatch::Application.config.session_store :dalli_store, namespace: '_stop_watch_session', key: '_stopwatch_session', expire_after: 1.day
+ StopWatch::Application.config.session_store :dalli_store, namespace: '_stop_watch_session', key: '_stopwatch_session', expire_after: 1.day
else
- Stopwatch::Application.config.session_store :cookie_store, key: '_stop_watch_session'
+ StopWatch::Application.config.session_store :cookie_store, key: '_stop_watch_session'
end
View
@@ -1,4 +1,4 @@
-Stopwatch::Application.routes.draw do
+StopWatch::Application.routes.draw do
match '/about' => 'home#about'
match '/presentation' => 'home#presentation'
match '/startup' => 'home#startup'
View
@@ -65,7 +65,7 @@
I18n.backend.reload!
# reload routes
- Stopwatch::Application.reload_routes!
+ StopWatch::Application.reload_routes!
# reload support stuff
Dir[Rails.root.join('spec/support/**/*.rb')].each {|f| require f}

0 comments on commit 6862987

Please sign in to comment.