Sha256: 92bf83d5f4f34a0b7fc220e2c8de801bbd9d7eec83093dda28ae96fc7d096b1b
Contents?: true
Size: 1.22 KB
Versions: 19
Compression:
Stored size: 1.22 KB
Contents
class Scaffolding::CompletelyConcrete::TangibleThing < ApplicationRecord # 🚅 add concerns above. belongs_to :absolutely_abstract_creative_concept, class_name: "Scaffolding::AbsolutelyAbstract::CreativeConcept" # 🚅 add belongs_to associations above. has_many :assignments, class_name: "Scaffolding::CompletelyConcrete::TangibleThings::Assignment", dependent: :destroy has_many :memberships, through: :assignments # 🚅 add has_many associations above. # 🚅 add oauth providers above. has_one_attached :file_field_value has_one :team, through: :absolutely_abstract_creative_concept # 🚅 add has_one associations above. # 🚅 add scopes above. validates :text_field_value, presence: true # 🚅 add validations above. after_validation :remove_file_field_value, if: :file_field_value_removal? # 🚅 add callbacks above. # 🚅 add delegations above. has_rich_text :action_text_value attr_accessor :file_field_value_removal def collection absolutely_abstract_creative_concept.completely_concrete_tangible_things end def file_field_value_removal? file_field_value_removal.present? end def remove_file_field_value file_field_value.purge end # 🚅 add methods above. end
Version data entries
19 entries across 19 versions & 2 rubygems