Sha256: 7dbfe9ebeea948bd7997662fac2ec44afe4a9010068d40fa2438cba30825509c
Contents?: true
Size: 980 Bytes
Versions: 6
Compression:
Stored size: 980 Bytes
Contents
class Asset < ActiveRecord::Base belongs_to :resource, :polymorphic => true end class Category < ActiveRecord::Base acts_as_list if defined?(ActiveRecord::Acts::List) validates_presence_of :name has_and_belongs_to_many :posts def self.typus end end class Comment < ActiveRecord::Base validates_presence_of :name, :email, :body belongs_to :post end class CustomUser < ActiveRecord::Base end class Page < ActiveRecord::Base acts_as_tree if defined?(ActiveRecord::Acts::Tree) end class Post < ActiveRecord::Base validates_presence_of :title, :body has_and_belongs_to_many :categories has_many :assets, :as => :resource, :dependent => :destroy has_many :comments has_many :views belongs_to :favorite_comment, :class_name => 'Comment' def self.status %w( true false pending published unpublished ) end def self.typus 'plugin' end def asset_file_name end end class View < ActiveRecord::Base belongs_to :post end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
typus-0.9.35 | test/models.rb |
typus-0.9.34 | test/models.rb |
typus-0.9.33 | test/models.rb |
typus-0.9.32 | test/models.rb |
typus-0.9.31 | test/models.rb |
typus-0.9.30 | test/models.rb |