Module: Goldencobra::LoginHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/goldencobra/login_helper.rb

Instance Method Summary collapse

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 render_registration_widget(usermodel_name, associated_model=nil)
  render partial: "/goldencobra/sessions/register",
         locals: { usermodel: usermodel_name, associated_model: associated_model }
end