summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 20:07:28 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 20:07:28 +0100
commita2abe7dffb8fe31687910ca4be6dc0374a247d00 (patch)
tree18001485e7409a425284ad4aba4d57be6c4d46dc
parentab4f55360bbac1b344d210e454cf7d278cb2d4c3 (diff)
Fixed some strange cancan problem. #119
-rw-r--r--app/controllers/call_routes_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 5ef7c4b..0f4a02d 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -1,5 +1,5 @@
class CallRoutesController < ApplicationController
- load_and_authorize_resource :call_route
+ authorize_resource :call_route
before_filter :spread_breadcrumbs
def index
@@ -25,6 +25,7 @@ class CallRoutesController < ApplicationController
end
def edit
+ @call_route = CallRoute.find(params[:id])
end
def update