mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
12 lines
221 B
Ruby
12 lines
221 B
Ruby
# frozen_string_literal: true
|
|
|
|
class StepComment < Comment
|
|
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments, touch: true
|
|
|
|
validates :step, presence: true
|
|
|
|
def commentable
|
|
step
|
|
end
|
|
end
|