Sha256: 0598f74d5e95c185bb02c2c58f903167df54b411f823391d065aae28addf6517
Contents?: true
Size: 360 Bytes
Versions: 4
Compression:
Stored size: 360 Bytes
Contents
class Pod < ActiveRecord::Base POD_TYPES = %w(content banner gallery video) acts_as_indexed :fields => [:name, :body, :url] validates_presence_of :name validates_inclusion_of :pod_type, :in => POD_TYPES belongs_to :image belongs_to :portfolio_entry belongs_to :video has_and_belongs_to_many :pages def system_name pod_type end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-pods-1.0.3 | app/models/pod.rb |
refinerycms-pods-1.0.2 | app/models/pod.rb |
refinerycms-pods-1.0.1 | app/models/pod.rb |
refinerycms-pods-1.0 | app/models/pod.rb |