fix for plan space on subscription

This commit is contained in:
Kyle Drake 2014-10-27 17:57:04 -07:00
parent 5abfcabe8b
commit f2d6bf0eac
3 changed files with 2 additions and 3 deletions

2
app.rb
View file

@ -309,7 +309,7 @@ post '/plan/update' do
reply_to: 'contact@neocities.org',
to: current_site.email || parent_site.email,
subject: "[Neocities] You've become a supporter!",
body: Tilt.new('./views/templates/email_subscription.erb', pretty: true).render(self, plan_name: Site::PLAN_FEATURES[params[:plan_type].to_sym][:name])
body: Tilt.new('./views/templates/email_subscription.erb', pretty: true).render(self, plan_name: Site::PLAN_FEATURES[params[:plan_type].to_sym][:name], plan_space: Site::PLAN_FEATURES[params[:plan_type].to_sym][:space].to_space_pretty)
})
end