Impressionist
This commit is contained in:
parent
420a302ee8
commit
687a1443ce
|
@ -37,6 +37,7 @@ class AnnouncementsController < ApplicationController
|
|||
|
||||
def show
|
||||
params = OrbitHelper.params
|
||||
|
||||
announcement = Bulletin.can_display.find_by(:uid=>params[:uid])
|
||||
|
||||
tags = announcement.tags.map{|tag| { "tag" => tag.name } } rescue []
|
||||
|
@ -53,7 +54,8 @@ class AnnouncementsController < ApplicationController
|
|||
"updated_at" => announcement.updated_at.strftime('%Y-%m-%d %H:%M'),
|
||||
"body" =>announcement.text,
|
||||
"image" => announcement.image.url
|
||||
}
|
||||
},
|
||||
"impressionist" => announcement
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
class Bulletin
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include Impressionist::Impressionable
|
||||
|
||||
include OrbitModel::Status
|
||||
include OrbitModel::Impression
|
||||
include OrbitTag::Taggable
|
||||
include OrbitCategory::Categorizable
|
||||
include Slug
|
||||
|
|
Loading…
Reference in New Issue