Module: Refile::Controller
- Defined in:
- lib/refile/rails.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/refile/rails.rb', line 5 def show file = Refile.backends.fetch(params[:backend_name]).get(params[:id]) = { disposition: "inline" } [:type] = Mime::Type.lookup_by_extension(params[:format]).to_s if params[:format] send_data file.read, end |