|
|
@ -60,6 +60,7 @@ class Subjects::CopySubjectService < ApplicationService
|
|
|
|
to_shixun = Shixun.new
|
|
|
|
to_shixun = Shixun.new
|
|
|
|
to_shixun.attributes = shixun.attributes.dup.except('id', 'user_id', 'identifier', 'homepage_show',
|
|
|
|
to_shixun.attributes = shixun.attributes.dup.except('id', 'user_id', 'identifier', 'homepage_show',
|
|
|
|
'use_scope', 'averge_star', 'myshixuns_count')
|
|
|
|
'use_scope', 'averge_star', 'myshixuns_count')
|
|
|
|
|
|
|
|
to_shixun.identifier = Util::UUID.generate_identifier(Shixun, 8)
|
|
|
|
to_shixun.user_id = user_id
|
|
|
|
to_shixun.user_id = user_id
|
|
|
|
to_shixun.save!
|
|
|
|
to_shixun.save!
|
|
|
|
|
|
|
|
|
|
|
|