2016-09-24 03:00:46 +00:00
|
|
|
# frozen_string_literal: true
|
2017-11-25 19:23:47 +00:00
|
|
|
|
2014-01-29 03:46:58 +00:00
|
|
|
module ContentHelper
|
|
|
|
def resource_name
|
|
|
|
:user
|
|
|
|
end
|
|
|
|
|
|
|
|
def resource
|
|
|
|
@resource ||= User.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def devise_mapping
|
|
|
|
@devise_mapping ||= Devise.mappings[:user]
|
|
|
|
end
|
|
|
|
end
|