added in johns constantize change as well as some other stuff like CSS fun
This commit is contained in:
@@ -7,7 +7,7 @@ class BenefitFormsController < ApplicationController
|
||||
|
||||
def download
|
||||
begin
|
||||
path = Rails.root.join('public', 'docs', params[:name])
|
||||
path = params[:name]
|
||||
file = params[:type].constantize.new(path)
|
||||
send_file file, :disposition => 'attachment'
|
||||
rescue
|
||||
|
||||
Reference in New Issue
Block a user