Permalink
Browse files

fix example

  • Loading branch information...
1 parent a169875 commit 5bf39cd4d97c7c81c6326b168046f2702f6cdcf1 @rkh committed Mar 13, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -18,10 +18,10 @@ Example
require "sinatra"
require "sinatra/config_file"
- configure do
+ configure do |c|
set :foo, "bar"
- config_file "settings.yml" # general settings
- config_file "#{environment}.settings.yml" # environment specific settings
+ config_file "settings.yml" # general settings
+ config_file "#{c.environment}.settings.yml" # environment specific settings
foo # => "bar" (no matter what you put in your config file)
end

0 comments on commit 5bf39cd

Please sign in to comment.