Class: ActionDispatch::Routing::Mapper

Inherits:
Object
  • Object
show all
Defined in:
lib/chromembed_rails/routes.rb

Overview

:nodoc: adding the chrome_extension method to the route mapper.

Instance Method Summary collapse

Instance Method Details

#chrome_extensionObject

Installs the routes for serving an extension



6
7
8
9
10
11
# File 'lib/chromembed_rails/routes.rb', line 6

def chrome_extension
  get 'chrome_extension.crx' => 'chrome_extension#show',
      :as => :chrome_extension
  get 'chrome_extension/update.xml' => 'chrome_extension#update',
      :as => :chrome_extension_update
end