Permalink
Browse files

More fixes

  • Loading branch information...
1 parent 8668b0d commit 0133cd953be3296f98c93e5eb6a87815c11bacbd @lifo committed Aug 13, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −1 app/actions/debugging_action.rb
  2. +0 −3 config.ru
@@ -5,7 +5,8 @@ class DebuggingAction < Cramp::Websocket
on_data :received_data
def received_data(data)
- render @debugger.eval_code(data)
+ result = @debugger.respond_to?(data) ? @debugger.send(data) : @debugger.eval_code(data)
+ render result
end
end
View
@@ -5,9 +5,6 @@ Enlighten::Application.initialize!
if Enlighten::Application.env == 'development'
use AsyncRack::CommonLogger
- # Enable code reloading on every request
- use Rack::Reloader, 0
-
# Serve javascripts and stylesheets from from /public
use Rack::Static, :urls => ["/javascripts", "/stylesheets"], :root => Enlighten::Application.root(:public)
end

0 comments on commit 0133cd9

Please sign in to comment.