Sha256: 0f28dcd0f0f703cccf4e76483d59f3ba4b1837fb9177968444fa7d02008acf23
Contents?: true
Size: 770 Bytes
Versions: 2
Compression:
Stored size: 770 Bytes
Contents
module CortexReaver class AdminController < Ramaze::Controller map '/admin' layout '/text_layout' engine :Erubis helper :error, :auth, :form, :workflow, :aspect before_all do require_roles :admin end def index end # Recalculate comment counts def update_comments [Journal, Page, Project, Photograph].each do |klass| klass.refresh_comment_counts end flash[:notice] = "Comment counts updated." redirect Rs() end # Recalculate tag counts and vacuum unused tags def update_tags @updated = Tag.refresh_counts @deleted = [] Tag.unused.order(:title).all.each do |tag| @deleted << tag.destroy end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cortex-reaver-0.0.8 | lib/cortex_reaver/controller/admin.rb |
cortex-reaver-0.0.9 | lib/cortex_reaver/controller/admin.rb |