mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-10 17:03:56 +08:00
change to create
This commit is contained in:
parent
228990f9da
commit
114a17ff0f
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ class CustomField < ActiveRecord::Base
|
|||
class_name: 'User'
|
||||
has_many :sample_custom_fields, inverse_of: :custom_field
|
||||
|
||||
def self.new(opt)
|
||||
def self.create(opt)
|
||||
user = opt[:user]
|
||||
org = opt[:organization]
|
||||
samples_table = SamplesTable.where(user: user,
|
||||
|
|
|
@ -15,7 +15,7 @@ class UserOrganization < ActiveRecord::Base
|
|||
I18n.t("user_organizations.enums.role.#{role.to_s}")
|
||||
end
|
||||
|
||||
def self.new(opt)
|
||||
def self.create(opt)
|
||||
user = opt[:user]
|
||||
org = opt[:organization]
|
||||
org_status = SampleDatatable::SAMPLES_TABLE_DEFAULT_STATE.deep_dup
|
||||
|
|
Loading…
Reference in a new issue