Sha256: 11578106fd1e3b580133ace128654cf4f3eef197ce4684b174d50b8ed47fcddf
Contents?: true
Size: 283 Bytes
Versions: 1
Compression:
Stored size: 283 Bytes
Contents
class MathjaxRailsController < ActionController::Base def giveOutStaticFile ext = '' ext = ".#{params[:format]}" if params[:format] send_file(File.expand_path("/../../../vendor/#{Mathjax::Rails::ZIPNAME}/#{params[:uri]+ext}",__FILE__),:disposition=>'inline')) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathjax-rails-0.0.1 | lib/mathjax/rails/controllers.rb |