Sha256: 9e4a283e0a42790020a5defb4ef9f7e491b0327a2f5d83607abbb3e92a70c3e8

Contents?: true

Size: 795 Bytes

Versions: 15

Compression:

Stored size: 795 Bytes

Contents

module Gluttonberg
  class ArticleLocalization < ActiveRecord::Base
    self.table_name = "gb_article_localizations"
    belongs_to :article  , :class_name => "Gluttonberg::Article"
    belongs_to :locale

    belongs_to :fb_icon , :class_name => "Gluttonberg::Asset" , :foreign_key => "fb_icon_id"
    belongs_to :featured_image , :foreign_key => :featured_image_id , :class_name => "Gluttonberg::Asset"

    is_versioned :non_versioned_columns => ['state' , 'disable_comments' , 'published_at' , 'article_id' , 'locale_id']

    validates_presence_of :title
    attr_accessible :article, :locale_id, :title, :featured_image_id, :excerpt, :body, :seo_title, :seo_keywords, :seo_description, :fb_icon_id, :article_id

    clean_html [:excerpt , :body]

    def name
      title
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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