module ApplicationHelper
  include AccountHelper
  include FontAwesomeHelper

  def datetime_ago date
    content_tag :date, nil, title: date.to_s(:long), "data-source": date.to_s(:rfc822)
  end

  def resource_name
  	:user
  end

   def resource
    @resource ||= User.new
  end

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

module ApplicationHelper
  include AccountHelper
  include FontAwesomeHelper

  def datetime_ago date
    content_tag :date, nil, title: date.to_s(:long), "data-source": date.to_s(:rfc822)
  end
end

--- 
+++ 
@@ -5,4 +5,16 @@
   def datetime_ago date
     content_tag :date, nil, title: date.to_s(:long), "data-source": date.to_s(:rfc822)
   end
+
+  def resource_name
+  	:user
+  end
+
+   def resource
+    @resource ||= User.new
+  end
+
+  def devise_mapping
+    @devise_mapping ||= Devise.mappings[:user]
+  end
 end
[Core] Implement global variables on application helper
