Sha256: 03883fb93bd03b10c795fdddc434a54eb2c98fe695a4bfafaf4c78a3e2f52be2

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

require 'active_support/all'
require 'action_controller'
require 'action_dispatch'

module Rails
  class App
    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
      end
      @routes
    end
  end

  def self.application
    @app ||= App.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
action_controller_tweaks-0.3.1 spec/fixtures/application.rb
action_controller_tweaks-0.3.0 spec/fixtures/application.rb
action_controller_tweaks-0.2.0 spec/fixtures/application.rb
action_controller_tweaks-0.1 spec/fixtures/application.rb