Sha256: eb2a6526f73507f2bf346070852df73fd36f6e4ebda2f73b13bbae55d15b3c2c

Contents?: true

Size: 320 Bytes

Versions: 21

Compression:

Stored size: 320 Bytes

Contents

require_relative 'app'

Eucalypt.glob('app', 'controllers', '*.rb').each do |file|
  controller_name = File.basename(file,'.*').camelize
  next if controller_name == 'ApplicationController'
  controller = controller_name.constantize
  map(controller.router) { run controller }
end

map('/') { run ApplicationController }

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
eucalypt-0.1.0 lib/eucalypt/eucalypt-core/templates/eucalypt/config.ru