Module: Binda::ApplicationHelper

Defined in:
app/helpers/binda/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#get_form_manage_user_urlObject



19
20
21
22
# File 'app/helpers/binda/application_helper.rb', line 19

def get_form_manage_user_url
	return manage_users_path if action_name == 'new'
	return manage_user_path  if action_name == 'edit'
end

#is_devise_controllerObject



8
9
10
11
12
13
14
15
16
17
# File 'app/helpers/binda/application_helper.rb', line 8

def is_devise_controller
	devise_controllers = [
		'confirmations', 
		'omniauth_callbacks', 
		'passwords',
		'sessions',
		'unlocks'
	]
	devise_controllers.include? controller_name
end

#main_appObject



4
5
6
# File 'app/helpers/binda/application_helper.rb', line 4

def main_app
  Rails.application.class.routes.url_helpers
end