Sha256: 7ee7019754e57b8a6810bc31d01d7eb5d533e8d05304d244f5dd34acfba521a2
Contents?: true
Size: 659 Bytes
Versions: 1
Compression:
Stored size: 659 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 helper Ecm::Comments::ApplicationHelper def self.resource_class Ecm::Blog::Post end private def load_collection_scope super.published.friendly.order(updated_at: :desc) end def load_scope super.published.friendly end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ecm_blog-1.0.0 | app/controllers/ecm/blog/posts_controller.rb |