lib/aclize.rb in aclize-0.2.1 vs lib/aclize.rb in aclize-0.2.2

- old
+ new

@@ -92,10 +92,10 @@ prepend_view_path File.expand_path("../../app/views", __FILE__) respond_to do |format| format.html { render 'aclize/403', disposition: "inline", status: 403, layout: false } end else - @_aclize_callback.call(path) + self.instance_eval(&@_aclize_callback) end end # register a callback to call when the user is not authorized to access the page def register_callback(&block)