Sha256: e096b8049ae88d6b2ba106b734db2823cdbc94fe94e6e141a344a9c0b3dbbbed

Contents?: true

Size: 604 Bytes

Versions: 18

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

require "singleton"

module MuchRails; end

# MuchRails::RailsRoutes is a Singleton object that provides Rails' URL helpers
# and path/URL generation.
class MuchRails::RailsRoutes
  include Singleton
  include ::Rails.application.routes.url_helpers

  # These methods support stubbing #method_missing in tests but have no real
  # effect or behavior.

  def method_missing(name, *args, &block)
    super
  end

  def respond_to_missing?(*args)
    super
  end

  private

  def default_url_options
    ::Rails.application.config.action_mailer.default_url_options
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
much-rails-0.4.3 lib/much-rails/rails_routes.rb
much-rails-0.4.2 lib/much-rails/rails_routes.rb
much-rails-0.4.1 lib/much-rails/rails_routes.rb
much-rails-0.4.0 lib/much-rails/rails_routes.rb
much-rails-0.3.0 lib/much-rails/rails_routes.rb
much-rails-0.2.8 lib/much-rails/rails_routes.rb
much-rails-0.2.7 lib/much-rails/rails_routes.rb
much-rails-0.2.6 lib/much-rails/rails_routes.rb
much-rails-0.2.5 lib/much-rails/rails_routes.rb
much-rails-0.2.4 lib/much-rails/rails_routes.rb
much-rails-0.2.3 lib/much-rails/rails_routes.rb
much-rails-0.2.2 lib/much-rails/rails_routes.rb
much-rails-0.2.1 lib/much-rails/rails_routes.rb
much-rails-0.2.0 lib/much-rails/rails_routes.rb
much-rails-0.1.3 lib/much-rails/rails_routes.rb
much-rails-0.1.2 lib/much-rails/rails_routes.rb
much-rails-0.1.1 lib/much-rails/rails_routes.rb
much-rails-0.1.0 lib/much-rails/rails_routes.rb