Sha256: 7b18ed5b1ef9e8c1696408908ab9e88ca3547c0330100fe935c9aea5639ee5e8

Contents?: true

Size: 427 Bytes

Versions: 2

Compression:

Stored size: 427 Bytes

Contents

# encoding: utf-8

require "usher"

Rango::Router.implement(:usher) do |env|
  env["rango.router.params"] = env["usher.params"]
end

module Rango
  module UrlHelper
    # url(:login)
    def url(*args)
      raise "You have to asign your routes to Project.router, for example Project.router = Usher::Interface.for(:rack) { get('/') }" if Project.router.nil?
      self.router.router.generator.generate(*args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rango-0.1.1.2.7 lib/rango/router/adapters/usher.rb
rango-0.1.1.2.6 lib/rango/router/adapters/usher.rb