upgrade
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user