lib/letter_opener/web/app.rb in letter_opener-web-0.1.0 vs lib/letter_opener/web/app.rb in letter_opener-web-0.1.1

- old
+ new

@@ -9,9 +9,16 @@ set :public_folder, Proc.new { "#{root}/assets" } set :views, Proc.new { "#{root}/views" } enable :method_override + if defined?(Padrino) && Padrino.version < '0.12.0' + def self.dependencies; []; end + def self.setup_application!; end + def self.reload!; end + set :erb, :engine_class => Padrino::Erubis::SafeBufferTemplate + end + def root_path "#{env['SCRIPT_NAME']}/" end get '/' do