Sha256: 323c28acdc211659f789523fd74bf7bd73bf2516191652525ae065b4240d5f76

Contents?: true

Size: 568 Bytes

Versions: 8

Compression:

Stored size: 568 Bytes

Contents

module Ecm
  module Videos
    class VideosController < Configuration.base_controller.constantize
      include Controller::ResourceConcern
      include Controller::ResourceInflectionsConcern
      include Controller::ResourceUrlsConcern
      include Controller::RestActionsConcern

      helper ResourceRenderer::ViewHelper

      def self.resource_class
        Ecm::Videos::Video
      end

      private

      def load_scope
        resource_class.published
      end

      def collection_scope
        resource_class.published.all
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecm_videos-2.1.1 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-2.1.0 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-2.0.0 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-1.0.4 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-1.0.3 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-1.0.2 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-1.0.1 app/controllers/ecm/videos/videos_controller.rb
ecm_videos-1.0.0 app/controllers/ecm/videos/videos_controller.rb