Class: Bulk::Sproutcore

Inherits:
Object
  • Object
show all
Defined in:
lib/bulk/sproutcore.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object



14
15
16
17
# File 'lib/bulk/sproutcore.rb', line 14

def call(env)
  env["PATH_INFO"] = "/" if env["PATH_INFO"].blank?
  sproutcore.call(env)
end

#sproutcoreObject



7
8
9
10
11
12
# File 'lib/bulk/sproutcore.rb', line 7

def sproutcore
  @sproutcore ||= begin
    project = SC::Project.load Rails.application.paths["app/sproutcore"].first, :parent => SC.builtin_project
    SC::Rack::Service.new(project)
  end
end