Sha256: 326f8f9dd8da5f00a5f5de9868a25f6cefe4b23707741cd1eec8dfe7e75edb50

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

class MathjaxRailsController < ActionController::Base
  def giveOutStaticFile
    ext = ''
    ext = ".#{params[:format]}" if params[:format]
    send_file(File.expand_path("../../../../vendor/#{Mathjax::Rails::DIRNAME}/#{params[:uri]+ext}",__FILE__),:disposition=>'inline')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mathjax-rails-0.0.2 lib/mathjax/rails/controllers.rb