Sha256: 59cc789d0ecf66bd1f1380a89956b8f75ef1bef5f952a8fe92f810bca01b68fb

Contents?: true

Size: 582 Bytes

Versions: 15

Compression:

Stored size: 582 Bytes

Contents

module Gluttonberg
  class Blog < ActiveRecord::Base
    self.table_name = "gb_blogs"
    include Content::Publishable
    include Content::SlugManagement

    belongs_to :user
    has_many :articles, :dependent => :destroy

    validates_presence_of :name

    is_versioned :non_versioned_columns => ['state' ,'published_at' , 'moderation_required' ]

    acts_as_taggable_on :tag
    clean_html [:description]
    attr_accessible :user_id, :name, :slug, :description, :moderation_required, :seo_title, :seo_keywords, :seo_description, :fb_icon_id, :state, :published_at

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
gluttonberg-core-2.6.4 app/models/gluttonberg/blog.rb
gluttonberg-core-2.6.3 app/models/gluttonberg/blog.rb
gluttonberg-core-2.6.2 app/models/gluttonberg/blog.rb
gluttonberg-core-2.6.1 app/models/gluttonberg/blog.rb
gluttonberg-core-2.6.0 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.9 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.8 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.7 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.6 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.5 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.4 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.3 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.2 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5.1 app/models/gluttonberg/blog.rb
gluttonberg-core-2.5 app/models/gluttonberg/blog.rb