forked from bofh/fetsite
Neuigkeiten Link
Querverweise für Neuigkeiten
This commit is contained in:
@@ -14,4 +14,11 @@ class Gallery < ActiveRecord::Base
|
||||
WORD_COUNT = 20
|
||||
attr_accessible :datum, :desc, :name
|
||||
has_many :fotos
|
||||
has_many :nlinks, as: :link
|
||||
scope :search, ->(query) {where("name like ? or desc like ?", "%#{query}%", "%#{query}%")}
|
||||
|
||||
def title
|
||||
name
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user