metamaps--metamaps/app/helpers/content_helper.rb

14 lines
185 B
Ruby
Raw Normal View History

module ContentHelper
def resource_name
:user
end
def resource
@resource ||= User.new
end
def devise_mapping
@devise_mapping ||= Devise.mappings[:user]
end
end