Sha256: de113485203cde5e07b1b20a668ef93fb7366c52c9a4b39007fae2cdcd1256a9
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
module Ecm::Pictures class AttachedPicture < ActiveRecord::Base # associations belongs_to :picture, foreign_key: 'ecm_pictures_picture_id' belongs_to :pictureable, polymorphic: true # validations validates :picture, :pictureable, presence: true end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_pictures2-3.0.1 | app/models/ecm/pictures/attached_picture.rb |
ecm_pictures2-3.0.0 | app/models/ecm/pictures/attached_picture.rb |