Module: Goldencobra::LoginHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/goldencobra/login_helper.rb
Instance Method Summary collapse
- #render_login_widget(usermodel_name) ⇒ Object
- #render_registration_widget(usermodel_name, associated_model = nil) ⇒ Object
Instance Method Details
#render_login_widget(usermodel_name) ⇒ Object
3 4 5 |
# File 'app/helpers/goldencobra/login_helper.rb', line 3 def (usermodel_name) render partial: "/goldencobra/sessions/login", locals: { usermodel: usermodel_name } end |
#render_registration_widget(usermodel_name, associated_model = nil) ⇒ Object
7 8 9 10 |
# File 'app/helpers/goldencobra/login_helper.rb', line 7 def (usermodel_name, associated_model=nil) render partial: "/goldencobra/sessions/register", locals: { usermodel: usermodel_name, associated_model: associated_model } end |