change to create

This commit is contained in:
Mojca Lorber 2016-12-07 16:57:17 +01:00
parent 228990f9da
commit 114a17ff0f
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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