Skip to content

Commit

Permalink
rename app module
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin committed Mar 7, 2012
1 parent d904864 commit 6862987
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -4,4 +4,4 @@

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

Stopwatch::Application.load_tasks
StopWatch::Application.load_tasks
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 Stopwatch::Application
run StopWatch::Application
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -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
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
Stopwatch::Application.initialize!
StopWatch::Application.initialize!
2 changes: 1 addition & 1 deletion config/environments/development.rb
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/environments/production.rb
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/environments/test.rb
@@ -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
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.
Stopwatch::Application.config.secret_token = '1748e28c51e872f9c683fd4574d8c458883735f919a50e09fa593e6f4a146eca4f8840e93a949d2943ebc7bd785479b1a2c97e600d7aa6677a1358c2556577f4'
StopWatch::Application.config.secret_token = '1748e28c51e872f9c683fd4574d8c458883735f919a50e09fa593e6f4a146eca4f8840e93a949d2943ebc7bd785479b1a2c97e600d7aa6677a1358c2556577f4'
4 changes: 2 additions & 2 deletions config/initializers/session_store.rb
@@ -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
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Expand Up @@ -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}
Expand Down

0 comments on commit 6862987

Please sign in to comment.