mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
- authentication routes are glitchy - custom devise views are not being displayed properly - routing issues and custom fields for devise routes and models
14 lines
189 B
Ruby
14 lines
189 B
Ruby
module ApplicationHelper
|
|
def resource_name
|
|
:user
|
|
end
|
|
|
|
def resource
|
|
@resource ||= User.new
|
|
end
|
|
|
|
def devise_mapping
|
|
@devise_mapping ||= Devise.mappings[:user]
|
|
end
|
|
end
|