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