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

Version Path
chili-0.3.0 lib/chili/extensions/rails/engine.rb
chili-0.2.2 lib/chili/extensions/rails/engine.rb
chili-0.2.1 lib/chili/extensions/rails/engine.rb
chili-0.2.0 lib/chili/extensions/rails/engine.rb
chili-0.1.0 lib/chili/extensions/rails/engine.rb
chili-0.0.9 lib/chili/extensions/rails/engine.rb
chili-0.0.8 lib/chili/extensions/rails/engine.rb
chili-0.0.7 lib/chili/extensions/rails/engine.rb