Small fixes for flashing
This commit is contained in:
parent
c5d6293737
commit
498ecf76f5
@ -1,3 +1,4 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require_relative 'index'
|
require_relative 'index'
|
||||||
|
require_relative 'message'
|
||||||
|
@ -23,6 +23,10 @@ class Destructo < Sinatra::Base
|
|||||||
require_relative 'helpers'
|
require_relative 'helpers'
|
||||||
helpers Helpers
|
helpers Helpers
|
||||||
|
|
||||||
|
# Register flash messages
|
||||||
|
require 'sinatra/flash'
|
||||||
|
register Sinatra::Flash
|
||||||
|
|
||||||
# Set up our view engine
|
# Set up our view engine
|
||||||
set :views, File.join(settings.root, '/../views')
|
set :views, File.join(settings.root, '/../views')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user