Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/chromembed_rails/routes.rb
Overview
:nodoc: adding the chrome_extension method to the route mapper.
Instance Method Summary collapse
-
#chrome_extension ⇒ Object
Installs the routes for serving an extension.
Instance Method Details
#chrome_extension ⇒ Object
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 |