mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 13:59:56 +08:00
17 lines
386 B
Ruby
17 lines
386 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Api
|
|
module V2
|
|
module StepElements
|
|
class TextsController < ::Api::V1::StepTextsController
|
|
private
|
|
|
|
def step_text_params
|
|
raise TypeError unless params.require(:data).require(:type) == 'step_texts'
|
|
|
|
params.require(:data).require(:attributes).permit(:name, :text)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|