Permalink
Browse files

Refactored lib/ to app/

  • Loading branch information...
1 parent 9dbb356 commit 37a926cfa4223952ce7985df397e02bc177442d5 @ekosz committed Mar 17, 2011
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -11,7 +11,7 @@
require 'shield'
# Helpers
-require_relative 'lib/helpers/init'
+require_relative 'app/helpers/init'
class Main < Sinatra::Base
@@ -33,7 +33,7 @@ class Main < Sinatra::Base
# Configure public directory
set :public, File.join(File.dirname(__FILE__), 'public')
- set :views, File.dirname(__FILE__)+'/lib/views'
+ set :views, File.dirname(__FILE__)+'/app/views'
# Configure HAML and SASS
set :haml, { :format => :html5 }
@@ -46,9 +46,9 @@ class Main < Sinatra::Base
end
# Models
-require_relative 'lib/models/init'
+require_relative 'app/models/init'
# Routes
-require_relative 'lib/routes/init'
+require_relative 'app/routes/init'
if User.find(:username=>'admin').size == 0
User.create(:username=>'admin', :password=>'admin')

0 comments on commit 37a926c

Please sign in to comment.