spec/fixtures/application.rb in action_controller_tweaks-0.3.1 vs spec/fixtures/application.rb in action_controller_tweaks-0.3.2

- old
+ new

@@ -1,12 +1,15 @@ -require 'active_support/all' -require 'action_controller' -require 'action_dispatch' +require "active_support/all" +require "action_controller" +require "action_dispatch" module Rails class App - def env_config; {} end + def env_config + {} + end + def routes return @routes if defined?(@routes) @routes = ActionDispatch::Routing::RouteSet.new @routes.draw do resources :posts # Replace with your own needs @@ -16,6 +19,6 @@ end def self.application @app ||= App.new end -end \ No newline at end of file +end