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

Version Path
bullet_train-super_scaffolding-1.0.24 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.23 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.22 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.21 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.20 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.17 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.16 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.15 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.14 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.13 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.12 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.11 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-1.0.10 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.5 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.4 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.3 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.2 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.1 app/models/scaffolding/completely_concrete/tangible_thing.rb
bullet_train-super_scaffolding-templates-1.0.0 app/models/scaffolding/completely_concrete/tangible_thing.rb