Sha256: 0d1f9ca565069855380a467caac64c8e9249c8e3243a104c3aac30623e0210d2

Contents?: true

Size: 719 Bytes

Versions: 10

Compression:

Stored size: 719 Bytes

Contents

# encoding: utf-8
#
# Copyright (C) 2011-2012  AdMaster, Inc.

module Apimaster
  class Application < Sinatra::Base

    # Helpers
    superclass.helpers Sinatra::JSON
    superclass.helpers Apimaster::Helpers::Request
    superclass.helpers Apimaster::Helpers::Headers
    superclass.helpers Apimaster::Helpers::Session

    superclass.configure :development do
      superclass.register Sinatra::Reloader
      superclass.also_reload "./app/{controllers,models,helpers}/**/*.rb"
    end

    superclass.configure do
      superclass.set :root, ::File.expand_path(".")
      superclass.set :json_encoder, :to_json
      superclass.set :show_exceptions, false
    end

    use Apimaster::Controllers::Errors

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
apimaster-0.1.4 lib/apimaster/application.rb
apimaster-0.1.3 lib/apimaster/application.rb
apimaster-0.1.2 lib/apimaster/application.rb
apimaster-0.1.1 lib/apimaster/application.rb
apimaster-0.0.7 lib/apimaster/application.rb
apimaster-0.0.6 lib/apimaster/application.rb
apimaster-0.0.5 lib/apimaster/application.rb
apimaster-0.0.4 lib/apimaster/application.rb
apimaster-0.0.3 lib/apimaster/application.rb
apimaster-0.0.2 lib/apimaster/application.rb