Sha256: 09266c62854d6e015d5b838d5bbd7b8eb342416a734eae5a609709ed9d6135a1
Contents?: true
Size: 566 Bytes
Versions: 2
Compression:
Stored size: 566 Bytes
Contents
module PhcdevworksTutorials class Tutorial::Step < ApplicationRecord # Paper Trail Initialize has_paper_trail :class_name => 'PhcdevworksTutorials::TutorialStepVersions' # Image Upload has_one_attached :step_image # Relationships belongs_to :user, class_name: "PhcdevworksAccounts::User" belongs_to :post, class_name: "Tutorial::Post" belongs_to :optimization, class_name: "PhcdevworksCoreModules::Marketing::Optimization", optional: true has_many :categories, class_name: "Tutorial::Category", :through => :post end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_tutorials-8.0.1 | app/models/phcdevworks_tutorials/tutorial/step.rb |
phcdevworks_tutorials-8.0.0 | app/models/phcdevworks_tutorials/tutorial/step.rb |