./lib/lux/controller/controller.rb in lux-fw-0.1.17 vs ./lib/lux/controller/controller.rb in lux-fw-0.1.35
- old
+ new
@@ -64,11 +64,11 @@
send(m, &block)
end
def rescued_main
if respond_to?(:main)
- @@rescue_from_ivar.call { main }
+ @@rescue_from_ivar.call(self) { main }
else
Lux.error %[No instance method "main" in Lux::Controller defiend]
end
end
@@ -79,11 +79,11 @@
when Symbol
('/%s' % @route).ljust(20).green
when nil
'/'.ljust(20).green
else
- @route.to_s.ljust(20).blue
+ @route.to_s.ljust(20).light_blue
end
route_target = case @route_target
when Symbol
':%s' % @route_target
@@ -167,10 +167,10 @@
end
end
object, action = object if object.is_a? Array
- Lux.log ' %s %s # %s' % [object.to_s.blue, nav.path, @route_object]
+ Lux.log ' %s %s # %s' % [object.to_s.light_blue, nav.path, @route_object]
if action
object.action action
else
object.call
\ No newline at end of file