test_apps/rails.rb in opal-rails-2.0.2 vs test_apps/rails.rb in opal-rails-2.0.3

- old
+ new

@@ -3,10 +3,11 @@ require 'rails' require 'rails/all' require 'action_view/testing/resolvers' require 'opal-rails' # our gem +require 'opal/rails/haml_filter' module RailsApp class Application < Rails::Application config.root = __dir__ config.cache_classes = true @@ -28,13 +29,14 @@ config.middleware.delete ActionDispatch::Flash routes.append do get '/' => 'application#index' get '/application/with_assignments' => 'application#with_assignments' + get '/application/haml_filter' => 'application#haml_filter' # just to reduce noise - get '/apple-touch-icon-precomposed.png' => -> { [404,{},[]] } - get '/favicon.ico' => -> { [404,{},[]] } + get '/apple-touch-icon-precomposed.png' => proc { [404,{},[]] } + get '/favicon.ico' => proc { [404,{},[]] } end config.assets.debug = true config.assets.digest = true