forked from bofh/fetsite
neuigkeit styling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user