2017-03-08 20:18:20 +08:00
|
|
|
class StepComment < Comment
|
2017-04-20 05:38:23 +08:00
|
|
|
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2017-03-08 20:18:20 +08:00
|
|
|
validates :step, presence: true
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|