Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Refactored lib/ to app/

  • Loading branch information...
commit 37a926cfa4223952ce7985df397e02bc177442d5 1 parent 9dbb356
@ekosz authored
Showing with 4 additions and 4 deletions.
  1. 0  {lib → app}/helpers/init.rb
  2. 0  {lib → app}/helpers/partials.rb
  3. 0  {lib → app}/helpers/redirect_with_objects.rb
  4. 0  {lib → app}/helpers/twilio_helpers.rb
  5. 0  {lib → app}/models/group.rb
  6. 0  {lib → app}/models/init.rb
  7. 0  {lib → app}/models/number.rb
  8. 0  {lib → app}/models/pca_base.rb
  9. 0  {lib → app}/models/user.rb
  10. 0  {lib → app}/routes/general.rb
  11. 0  {lib → app}/routes/init.rb
  12. 0  {lib → app}/routes/login.rb
  13. 0  {lib → app}/routes/main.rb
  14. 0  {lib → app}/routes/twilio.rb
  15. 0  {lib → app}/views/css/_plugins.sass
  16. 0  {lib → app}/views/css/base.sass
  17. 0  {lib → app}/views/css/handheld.sass
  18. 0  {lib → app}/views/css/hashgrid.sass
  19. 0  {lib → app}/views/css/print.sass
  20. 0  {lib → app}/views/css/reset.sass
  21. 0  {lib → app}/views/css/style.sass
  22. 0  {lib → app}/views/general.haml
  23. 0  {lib → app}/views/general_edit.haml
  24. 0  {lib → app}/views/general_new.haml
  25. 0  {lib → app}/views/generals.haml
  26. 0  {lib → app}/views/index.haml
  27. 0  {lib → app}/views/layout.haml
  28. 0  {lib → app}/views/login.haml
  29. +4 −4 main.rb
View
0  lib/helpers/init.rb → app/helpers/init.rb
File renamed without changes
View
0  lib/helpers/partials.rb → app/helpers/partials.rb
File renamed without changes
View
0  lib/helpers/redirect_with_objects.rb → app/helpers/redirect_with_objects.rb
File renamed without changes
View
0  lib/helpers/twilio_helpers.rb → app/helpers/twilio_helpers.rb
File renamed without changes
View
0  lib/models/group.rb → app/models/group.rb
File renamed without changes
View
0  lib/models/init.rb → app/models/init.rb
File renamed without changes
View
0  lib/models/number.rb → app/models/number.rb
File renamed without changes
View
0  lib/models/pca_base.rb → app/models/pca_base.rb
File renamed without changes
View
0  lib/models/user.rb → app/models/user.rb
File renamed without changes
View
0  lib/routes/general.rb → app/routes/general.rb
File renamed without changes
View
0  lib/routes/init.rb → app/routes/init.rb
File renamed without changes
View
0  lib/routes/login.rb → app/routes/login.rb
File renamed without changes
View
0  lib/routes/main.rb → app/routes/main.rb
File renamed without changes
View
0  lib/routes/twilio.rb → app/routes/twilio.rb
File renamed without changes
View
0  lib/views/css/_plugins.sass → app/views/css/_plugins.sass
File renamed without changes
View
0  lib/views/css/base.sass → app/views/css/base.sass
File renamed without changes
View
0  lib/views/css/handheld.sass → app/views/css/handheld.sass
File renamed without changes
View
0  lib/views/css/hashgrid.sass → app/views/css/hashgrid.sass
File renamed without changes
View
0  lib/views/css/print.sass → app/views/css/print.sass
File renamed without changes
View
0  lib/views/css/reset.sass → app/views/css/reset.sass
File renamed without changes
View
0  lib/views/css/style.sass → app/views/css/style.sass
File renamed without changes
View
0  lib/views/general.haml → app/views/general.haml
File renamed without changes
View
0  lib/views/general_edit.haml → app/views/general_edit.haml
File renamed without changes
View
0  lib/views/general_new.haml → app/views/general_new.haml
File renamed without changes
View
0  lib/views/generals.haml → app/views/generals.haml
File renamed without changes
View
0  lib/views/index.haml → app/views/index.haml
File renamed without changes
View
0  lib/views/layout.haml → app/views/layout.haml
File renamed without changes
View
0  lib/views/login.haml → app/views/login.haml
File renamed without changes
View
8 main.rb
@@ -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')
Please sign in to comment.
Something went wrong with that request. Please try again.