Sha256: f77293df6f17a767e99d3603e288074d43d7c3a34475621eafcf2c35e05d18fb
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
class EngineAssets::AssetsController < ApplicationController unloadable layout nil before_filter :expire, :set_headers after_filter :cache def show flat_file = EngineAssets::PublicLocator.locate(File.join(controller_name, [params[:path], params[:format]].join('.'))) if(flat_file) render(:file => flat_file) else render(:template => File.join('engine_assets', controller_name, params[:path]), :layout => false) end end private def expire # TODO # expire_page :controller => self, :action => "all" end def cache cache_page end def set_headers # optionally override end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engine-assets-0.2.0 | app/controllers/engine_assets/assets_controller.rb |