[bugfix]modified using wrong project in index action

This commit is contained in:
Toru Takahashi 2018-05-20 22:05:42 +09:00 committed by TAKAHASHI,Toru
parent bcc8039d54
commit 100ef15246

View File

@ -4,7 +4,7 @@ class GlossaryCategoriesController < ApplicationController
before_action :find_project_from_id
def index
@categories = GlossaryCategory.where(project_id: @project_id)
@categories = GlossaryCategory.where(project_id: @project.id)
end
def show