mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Fix typo
This commit is contained in:
parent
f00561cc22
commit
0d1dd74f02
1 changed files with 3 additions and 3 deletions
|
@ -41,13 +41,13 @@ class MyModuleRepositoriesController < ApplicationController
|
|||
private
|
||||
|
||||
def load_my_module
|
||||
@my_module = MyModule.find(params[:my_module_id])
|
||||
@my_module = MyModule.find_by(id: params[:my_module_id])
|
||||
render_404 unless @my_module
|
||||
end
|
||||
|
||||
def load_repository
|
||||
@repository = Repository.find(params[:id])
|
||||
ender_404 unless @repository
|
||||
@repository = Repository.find_by(id: params[:id])
|
||||
render_404 unless @repository
|
||||
end
|
||||
|
||||
def check_my_module_view_permissions
|
||||
|
|
Loading…
Reference in a new issue