Fix relations error in tags
This commit is contained in:
1 parent
778a85ca2b
commit
d0c2856a3a
6 files changed
+8
-8
No files matched your search
@@ -19,7 +19,7 @@ class Admin::TagsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@tag = Tag.create(params[:tag])
|
||||
@tag = (params[:tag][:module_app_id].blank? ? Tag.create(params[:tag]) : ModuleAppTag.create(params[:tag]))
|
||||
end
|
||||
|
||||
def update
|
||||
|
||||
Reference in new issue
Block a user