Sha256: b8b71c6718082c0a6b93f013eb997a01c0648c529007ef1c268bc850f5923987
Contents?: true
Size: 210 Bytes
Versions: 8
Compression:
Stored size: 210 Bytes
Contents
class Rails::Engine def self.automount!(path = nil) engine = self path ||= engine.parent.to_s.underscore.sub('_','/') Rails.application.routes.draw do mount engine => path end end end
Version data entries
8 entries across 8 versions & 1 rubygems