1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-30 11:24:21 +01:00
fab-manager/app/models/project_step.rb
2016-11-02 14:58:06 +01:00

6 lines
230 B
Ruby

class ProjectStep < ActiveRecord::Base
belongs_to :project
has_many :project_step_images, as: :viewable, dependent: :destroy
accepts_nested_attributes_for :project_step_images, allow_destroy: true, reject_if: :all_blank
end