class SprocketsController

Public Instance Methods

index() click to toggle source
# File lib/sprockets_controller.rb, line 4
def index
  show
end
show() click to toggle source
# File lib/sprockets_controller.rb, line 8
def show
  sprocket = Sprocket.new(params[:id])
  render :text => sprocket.source, :content_type => "text/javascript"
end