Class: Aven::Views::Static::Index::Component
- Inherits:
-
ApplicationViewComponent
- Object
- Aeros::ApplicationViewComponent
- ApplicationViewComponent
- Aven::Views::Static::Index::Component
- Defined in:
- app/components/aven/views/static/index/component.rb
Instance Method Summary collapse
Methods inherited from ApplicationViewComponent
Instance Method Details
#oauth_path_for(provider) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'app/components/aven/views/static/index/component.rb', line 5 def oauth_path_for(provider) case provider.to_sym when :github Aven::Engine.routes.url_helpers.oauth_github_path when :google Aven::Engine.routes.url_helpers.oauth_google_path else "#" end end |