Module: Auth::Users::ProfilesHelper

Defined in:
app/helpers/auth/users/profiles_helper.rb

Instance Method Summary collapse

Instance Method Details

#user_data(resource) ⇒ Object

@used_in: views/users/profiles/_user_data.html.erb @resource: a Devise resource @returns: a hash with key: resource, value -> jsonified representation of whatever data you want to store for that resource



6
7
8
# File 'app/helpers/auth/users/profiles_helper.rb', line 6

def user_data(resource)
	{resource: {:id => resource.id.to_s}}
end