forked from bofh/fetsite
AutoCommit Mon Sep 14 12:03:04 CEST 2015
This commit is contained in:
@@ -30,6 +30,7 @@ class Neuigkeit < ActiveRecord::Base
|
||||
translates :title,:text, :versioning=>{:gem=>:paper_trail, :options=>{:fallbacks_for_empty_translations => true}}
|
||||
globalize_accessors :locales => [:de, :en], :attributes =>[:text,:title]
|
||||
mount_uploader :picture, PictureUploader
|
||||
include IsCommentable
|
||||
|
||||
default_scope order(:cache_order).includes(:calentries).includes(:title_pic)
|
||||
scope :recent, -> { published.limit(10)}
|
||||
|
||||
Reference in New Issue
Block a user