Class: AnnouncementsController

Inherits:
CartoonistController
  • Object
show all
Defined in:
app/controllers/announcements_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
# File 'app/controllers/announcements_controller.rb', line 2

def index
  cache_page_as "announcements.#{cache_type}.tmp.json" do
    render :json => { :announcements => Announcement.actives_as_hash }
  end
end