Sha256: 29a334a4f9f651675d9c2f8f621bb7c58bf2539a48e5ca03a56711606894fda4
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
class SprocketsController < ActionController::Base caches_page :show, :if => Proc.new { SprocketsApplication.use_page_caching } def index show end def show sprocket = Sprocket.new(params[:id]) render :text => sprocket.source, :content_type => "text/javascript" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprockets-rails-0.0.1 | lib/sprockets_controller.rb |
sprockets-rails-0.0.0 | lib/sprockets_controller.rb |