Sha256: 66a1348f40180be3ee5d6e65313da2052a6cfcabd4891eeeb84a3cfa9a38a749

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

module Coprl
  module Presenters
    module Helpers
      module Rails
        module Routes
          include ::Rails.application.routes.url_helpers
          def default_url_options
            ::Rails.application.config.action_controller.default_url_options || { :host => context[:base_url] ? context[:base_url] : context[:request].host_with_port }
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/helpers/rails/routes.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/helpers/rails/routes.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/helpers/rails/routes.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/helpers/rails/routes.rb