neuigkeit styling

This commit is contained in:
2013-08-22 23:44:09 +02:00
parent cfcf0be4d5
commit 57b015a44e
2 changed files with 5 additions and 9 deletions

View File

@@ -19,4 +19,5 @@ class Neuigkeit < ActiveRecord::Base
validates :rubrik, :presence=>true
validates :author, :presence=>true
translates :title,:text, :versioning=>true, :fallbacks_for_empty_translations => true
scope :recent, -> { where("updated_at >= ? ",Time.now - 7.days)}
end