Browse Source

Fix requires

master
Adrian Short 9 years ago
parent
commit
a6dcb17305
2 changed files with 3 additions and 12 deletions
  1. +3
    -3
      app.rb
  2. +0
    -9
      models.rb

+ 3
- 3
app.rb View File

@@ -1,8 +1,8 @@
require 'rubygems'
require 'sinatra' require 'sinatra'
require 'sinatra-helpers/haml/partials'
# require 'sinatra-helpers/haml/partials'
require 'haml' require 'haml'
require 'lib/models'
require 'data_mapper'
require './models'


SETTING = Setting.first # Could also do this with Sinatra filters before/do SETTING = Setting.first # Could also do this with Sinatra filters before/do




+ 0
- 9
models.rb View File

@@ -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 class Payment
include DataMapper::Resource include DataMapper::Resource


Loading…
Cancel
Save