Permalink
Browse files

Updating the templates to capitalize the class name when needed

  • Loading branch information...
1 parent a3bf83c commit d2c804f6cff6a0171bfdfaf8bc39905c4a0e3635 @larrywright committed Sep 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 templates/app.rb.tt
  2. +1 −1 templates/config.ru.tt
View
@@ -8,7 +8,7 @@ Dir["models/*.rb"].each do |model|
require_relative model
end
-class <%= name %> < Sinatra::Base
+class <%= name.capitalize %> < Sinatra::Base
set :public_folder, File.dirname(__FILE__) + '/public'
require "sinatra/reloader"
@@ -3,4 +3,4 @@ require '<%= name.downcase %>'
set :environment, ENV['RACK_ENV'].to_sym
-run <%= name %>
+run <%= name.capitalize %>

0 comments on commit d2c804f

Please sign in to comment.