Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

configurations -> configuration.

  • Loading branch information...
commit 3ec4d44665998f05f68d6c3a539b39b0f867afc4 1 parent 1203531
@kou kou authored
Showing with 5 additions and 5 deletions.
  1. +4 −4 app.rb
  2. +1 −1  config.ru
View
8 app.rb
@@ -16,18 +16,18 @@
include ERB::Util
-@@configurations = {
+@@configuration = {
:debug => false,
:rendering_mode => :big,
}
-@@configurations[:debug] = true if ENV["RACK_ENV"] == "development"
+@@configuration[:debug] = true if ENV["RACK_ENV"] == "development"
def debug?
- @@configurations[:debug]
+ @@configuration[:debug]
end
def rendering_mode
- @@configurations[:rendering_mode]
+ @@configuration[:rendering_mode]
end
def jigoku?
View
2  config.ru
@@ -2,6 +2,6 @@
require './app'
-# @@configurations[:rendering_mode] = :jigoku
+# @@configuration[:rendering_mode] = :jigoku
run Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.