Class: Bently::Omniauth
- Inherits:
-
RailsRecipe
- Object
- Recipe
- RubyRecipe
- RailsRecipe
- Bently::Omniauth
- Defined in:
- lib/bently/recipe/omniauth.rb
Constant Summary
Constants inherited from RubyRecipe
Instance Method Summary collapse
-
#initialize ⇒ Omniauth
constructor
A new instance of Omniauth.
Methods inherited from RailsRecipe
Methods inherited from RubyRecipe
Methods inherited from Recipe
#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn
Constructor Details
#initialize ⇒ Omniauth
Returns a new instance of Omniauth.
7 8 9 10 11 12 13 14 |
# File 'lib/bently/recipe/omniauth.rb', line 7 def initialize gem 'omniauth' bundle create './config/initializers/omniauth.rb', template('omniauth.rb') insert 'config/routes.rb', " match '/auth/:provider/callback', to: 'sessions#create'\n", :after => "Application.routes.draw do\n" create './app/controllers/sessions_controller.rb', template('sessions_controller.rb') todo 'implement User#find_or_create_from_auth_hash' end |