Sha256: a3c84baf355d72236a23d365fa20e9e05a1ec4956b8584adb88921b0b6a3ec46

Contents?: true

Size: 234 Bytes

Versions: 4

Compression:

Stored size: 234 Bytes

Contents

module MxitRails
  class Router
    def self.url route
      path = []
      root = Rails.application.config.mxit_root
      path << root unless root.blank?
      path << route.to_s
      path = '/' + path.join('/')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mxit-rails-0.1.1 lib/mxit_rails/router.rb
mxit-rails-0.1.0 lib/mxit_rails/router.rb
mxit-rails-0.0.9 lib/mxit_rails/router.rb
mxit-rails-0.0.8 lib/mxit_rails/router.rb