summaryrefslogtreecommitdiffstats
path: root/registration.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2015-10-03 18:46:37 +0200
committerHarald Eilertsen <haraldei@anduin.net>2015-10-04 11:42:03 +0200
commit1f63803e7bdac1abe4219e98a1a7bd84529ec144 (patch)
tree16decb05b424158b171633b703841ab94cc18ecc /registration.rb
parent1c48f48073e33875650b687ced05a51e0fd7f7d3 (diff)
downloadnorsk-urskog-registrations-1f63803e7bdac1abe4219e98a1a7bd84529ec144.tar.gz
norsk-urskog-registrations-1f63803e7bdac1abe4219e98a1a7bd84529ec144.tar.bz2
norsk-urskog-registrations-1f63803e7bdac1abe4219e98a1a7bd84529ec144.zip
Send email to Norsk Urskog when a band is registered.
Diffstat (limited to 'registration.rb')
-rw-r--r--registration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/registration.rb b/registration.rb
index 9fae54f..f599bfd 100644
--- a/registration.rb
+++ b/registration.rb
@@ -1,5 +1,5 @@
require 'sinatra/base'
-require_relative 'lib/band'
+require_relative 'lib/registration'
class RegistrationApp < Sinatra::Base
@@ -11,7 +11,7 @@ class RegistrationApp < Sinatra::Base
if request.form_data?
#p request['band']
@band = Band.new(request['band'])
-
+ send_registration_emails_for @band
erb :submitted
end
end