This commit is contained in:
Polo
2019-11-26 00:30:53 +02:00
parent 5bf05b6b7f
commit 7f95679bae
15 changed files with 153 additions and 112 deletions

View File

@@ -1,4 +1,15 @@
class Informativo < ApplicationRecord
self.table_name = "informativo"
# paginates_per 10
paginates_per 10
def tags
tags = []
tags << self.tag1
tags << self.tag2
tags << self.tag3
tags = tags.uniq.join(", ").downcase
tags.chop! if tags[tags.size-1]==","
tags
end
end