lib/happy/context.rb in happy-0.1.0.pre12 vs lib/happy/context.rb in happy-0.1.0.pre13
- old
+ new
@@ -21,14 +21,9 @@
def with_controller(new_controller)
# remember previous controller
old_controller = self.controller
self.controller = new_controller
- # execute permissions block SMELL - better integration
- if controller.class.respond_to?(:permissions_blk)
- controller.class.permissions_blk.try(:call, permissions, self)
- end
-
# execute block
yield
ensure
# switch back to previous controller
self.controller = old_controller