controllers: set @current_item globally in respond_with.
This commit is contained in:
@@ -19,7 +19,7 @@ class BansController < ApplicationController
|
||||
end
|
||||
|
||||
def show
|
||||
@current_item = @ban = Ban.find(params[:id])
|
||||
@ban = Ban.find(params[:id])
|
||||
respond_with(@ban)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user