lib/rib/app/rack.rb in rib-1.1.6 vs lib/rib/app/rack.rb in rib-1.2.0
- old
+ new
@@ -13,10 +13,10 @@
def load_rack
require 'rack'
Rib.abort("Error: Cannot find config.ru") unless rack?
app, _ = Rack::Builder.parse_file('config.ru')
self.app = app
- Rib.shell.config[:binding].eval('def app; Rib::Rack.app; end')
+ Rib.shell.eval_binding.eval('def app; Rib::Rack.app; end')
Rib.say("Access your app via :app method")
end
def rack?
File.exist?('config.ru')