From a6dcb17305e14c4654b01defc74d7215a11c5db6 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sun, 26 Apr 2015 13:53:02 +0100 Subject: [PATCH] Fix requires --- app.rb | 6 +++--- models.rb | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app.rb b/app.rb index 227fb3f..732fc5d 100644 --- a/app.rb +++ b/app.rb @@ -1,8 +1,8 @@ -require 'rubygems' require 'sinatra' -require 'sinatra-helpers/haml/partials' +# require 'sinatra-helpers/haml/partials' require 'haml' -require 'lib/models' +require 'data_mapper' +require './models' SETTING = Setting.first # Could also do this with Sinatra filters before/do diff --git a/models.rb b/models.rb index 7b57d1d..7cc6917 100644 --- a/models.rb +++ b/models.rb @@ -1,12 +1,3 @@ -require 'rubygems' -require 'datamapper' -require 'dm-core' -require 'dm-validations' -require 'dm-timestamps' -require 'dm-aggregates' -require 'dm-serializer' -require 'dm-migrations' - class Payment include DataMapper::Resource