Class: Bones::Proxy

Inherits:
Object show all
Defined in:
lib/bones/proxy.rb

Instance Method Summary collapse

Instance Method Details

#call(env) ⇒ Object

Process incoming request



9
10
11
12
# File 'lib/bones/proxy.rb', line 9

def call(env)
  reload!
  Bones.new.call(env)  
end

#reload!Object

Reloads the application



15
16
17
# File 'lib/bones/proxy.rb', line 15

def reload!
  force_load 'Bones' => File.join(File.dirname(__FILE__), '..', 'bones.rb')
end