Sha256: 43d9649440f4be4601014711385764fa9843cfe9ebe6330cff45e4880d17d77c

Contents?: true

Size: 485 Bytes

Versions: 17

Compression:

Stored size: 485 Bytes

Contents

module Binda
  module ApplicationHelper

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

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

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

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
binda-0.1.11 app/helpers/binda/application_helper.rb
binda-0.1.10 app/helpers/binda/application_helper.rb
binda-0.1.9 app/helpers/binda/application_helper.rb
binda-0.1.8 app/helpers/binda/application_helper.rb
binda-0.1.7 app/helpers/binda/application_helper.rb
binda-0.1.6 app/helpers/binda/application_helper.rb
binda-0.1.5 app/helpers/binda/application_helper.rb
binda-0.1.4 app/helpers/binda/application_helper.rb
binda-0.1.3 app/helpers/binda/application_helper.rb
binda-0.1.2 app/helpers/binda/application_helper.rb
binda-0.1.1 app/helpers/binda/application_helper.rb
binda-0.1.0 app/helpers/binda/application_helper.rb
binda-0.0.7 app/helpers/binda/application_helper.rb
binda-0.0.6 app/helpers/binda/application_helper.rb
binda-0.0.5 app/helpers/binda/application_helper.rb
binda-0.0.3 app/helpers/binda/application_helper.rb
binda-0.0.2 app/helpers/binda/application_helper.rb