Sha256: f946279fe70f8559a1bb9f807ce9d88ff212547e0ead6d958caafe476bb2341d

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

module Rhino
  class Application
    def get_controller_and_action(env)
      _, cont, action, after = env['PATH_INFO'].split("/", 4)
      cont = cont.capitalize
      cont += "Controller"

      [Object.const_get(cont), action]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhino-framework-0.0.4 lib/rhino/routing.rb