Sha256: 656859486ade3af10f6dc21b799f130f37a9bfe1cad6009ca8db90f09cd55bc8
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
module RailsConnector # This controller provides some default includes ({CmsAccessible}), # before filters (+load_object+, among others), and actions to simplify # CMS object handling. It should never be used directly, but only as a # super class to {CmsController}. # @api public class DefaultCmsController < ApplicationController include CmsAccessible before_filter :load_object # Default Action. Delivers files directly if {BasicObj#binary?}. # Otherwise the view is rendered. # @api public def index deliver_file if @obj.binary? end # This method indicates if this controller should be used automatically when an Obj is # requested via the Rails Connector's standard routes. It returns true by default. # # Overwrite it to return false if you do want your controller to be excluded from Obj dispatching. # # You may also implement a method with the name {use_for_obj_dispatch?} in controllers not # descending from {DefaultCmsController} to include them in Obj dispatching. # # @see Obj#controller_name # @api public def self.use_for_obj_dispatch? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
infopark_cloud_connector-7.1.0 | app/controllers/rails_connector/default_cms_controller.rb |
infopark_cloud_connector-7.0.2 | app/controllers/rails_connector/default_cms_controller.rb |