Sha256: db3a73e51ae4d7f2d7f6d05a47d575aa35e072b940223e65a84a57215d4f09fe
Contents?: true
Size: 426 Bytes
Versions: 44
Compression:
Stored size: 426 Bytes
Contents
class Form < ApplicationRecord include Concerns::Translatable translatable_fields :success_message has_many :fields, class_name: 'FormField', dependent: :destroy has_many :submissions, class_name: 'FormSubmission', dependent: :destroy has_many :data, through: :submissions has_many :content_forms, dependent: :destroy validates :description, presence: true def deletable? content_forms.empty? end end
Version data entries
44 entries across 44 versions & 1 rubygems