mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-06 07:33:04 +08:00
21 lines
423 B
Ruby
21 lines
423 B
Ruby
# frozen_string_literal: true
|
|
|
|
module RepositoryColumns
|
|
class CreateAssetColumnService < ColumnService
|
|
def initialize(user, repository_id, name)
|
|
super(user, repository_id, name)
|
|
end
|
|
|
|
def call
|
|
return self unless valid?
|
|
|
|
ActiveRecord::Base.transaction do
|
|
create_base_column(Extends::REPOSITORY_DATA_TYPES[:RepositoryAssetValue])
|
|
|
|
# TODO
|
|
end
|
|
|
|
self
|
|
end
|
|
end
|
|
end
|