diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2015-10-30 19:18:47 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2015-10-30 19:18:47 +0100 |
commit | 5a1b397a8eb9cef2286ea11950a7a3891b93f8eb (patch) | |
tree | be8ff61c142d70057b79ea90357e37d5b6e83ff3 /registration.rb | |
parent | db3b350540b559ff222de123f99731e21da6fb62 (diff) | |
download | norsk-urskog-registrations-5a1b397a8eb9cef2286ea11950a7a3891b93f8eb.tar.gz norsk-urskog-registrations-5a1b397a8eb9cef2286ea11950a7a3891b93f8eb.tar.bz2 norsk-urskog-registrations-5a1b397a8eb9cef2286ea11950a7a3891b93f8eb.zip |
Add support for configuring contact email without hardcoding it.
Diffstat (limited to 'registration.rb')
-rw-r--r-- | registration.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/registration.rb b/registration.rb index e3bf571..34baf84 100644 --- a/registration.rb +++ b/registration.rb @@ -2,6 +2,7 @@ require 'sinatra/base' require 'sinatra/url_for' require 'tilt/erb' require_relative 'lib/registration' +require_relative 'lib/config' class RegistrationApp < Sinatra::Base helpers Sinatra::UrlForHelper @@ -10,6 +11,7 @@ class RegistrationApp < Sinatra::Base enable :sessions get '/' do + @config = Config.load @band = Band.new 3.times { @band.songs << Song.new } erb :index |