Sha256: 5497ff9f15dcfc7b9ceef7645a9591758d6c7e738f2d026952906b1da6fe332d

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

module Mache
  module Helpers
    module Rails
      # The {Routes} module can be Included into page object classes that
      # support routing.
      module Routes
        def self.included(base)
          base.class_eval do
            include ::Rails.application.routes.url_helpers
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mache-2.1.1 lib/mache/helpers/rails/routes.rb
mache-2.1.0 lib/mache/helpers/rails/routes.rb