Method: AmpleAssets::FilesController#show

Defined in:
app/controllers/ample_assets/files_controller.rb

#showObject

Raises:

  • (ActiveRecord::RecordNotFound)


37
38
39
40
41
42
43
# File 'app/controllers/ample_assets/files_controller.rb', line 37

def show
  raise ActiveRecord::RecordNotFound if current_file.nil?
  respond_to do |format|
    format.json { render :json => current_file.to_json }
    format.html
  end
end