From 43bb7aa712b94fe90ad207842cfc514b14d17458 Mon Sep 17 00:00:00 2001 From: Sean Grove Date: Wed, 11 Apr 2012 18:13:42 -0700 Subject: [PATCH] Add user email to the initial load --- app/controllers/channels_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/channels_controller.rb b/app/controllers/channels_controller.rb index c7997b25..bc37a578 100644 --- a/app/controllers/channels_controller.rb +++ b/app/controllers/channels_controller.rb @@ -12,7 +12,7 @@ def index more_activities = (channel.activities.count > Kandan::Config.options[:per_page]) channel.activities.order('id DESC').includes(:user).page.each do |activity| activities.push activity.attributes.merge({ - :user => activity.user.as_json(:only => [:id, :ido_id, :first_name, :last_name, :gravatar_hash, :active, :locale]) + :user => activity.user.as_json(:only => [:id, :ido_id, :email, :first_name, :last_name, :gravatar_hash, :active, :locale]) }) end