Module: ApplicationHelper

Defined in:
lib/templates/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#devise_mappingObject



10
11
12
# File 'lib/templates/application_helper.rb', line 10

def devise_mapping
  @devise_mapping ||= Devise.mappings[:user]
end

#resourceObject



6
7
8
# File 'lib/templates/application_helper.rb', line 6

def resource
  @resource ||= User.new
end

#resource_nameObject



2
3
4
# File 'lib/templates/application_helper.rb', line 2

def resource_name
  :user
end