Sha256: 200eecdd5c3756cf7c9833391a580cff4dcf652f6d05382c438f08b72d246ce5
Contents?: true
Size: 867 Bytes
Versions: 2
Compression:
Stored size: 867 Bytes
Contents
module Ecm module Blog class PostsController < Ecm::Blog::Configuration.base_controller.constantize include ResourcesController::Resources include ResourcesController::ResourceInflections include ResourcesController::RestResourceUrls include ResourcesController::RestActions include ResourcesController::Kaminari include ResourcesController::LocationHistory helper Ecm::Comments::ApplicationHelper helper Rails::AddOns::TableHelper def self.resource_class Ecm::Blog::Post end private def load_collection_scope if params.has_key?(:year) super.published.for_date(params[:year], params[:month], params[:day]) else super.published end end def load_resource_scope super.published.friendly end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecm_blog-1.3.1 | app/controllers/ecm/blog/posts_controller.rb |
ecm_blog-1.3.0 | app/controllers/ecm/blog/posts_controller.rb |