Skip to content

Commit

Permalink
Saves locale on bushido login
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Manohar J <akash@akash.im>
  • Loading branch information
HashNuke committed Apr 5, 2012
1 parent a74e794 commit d3f89ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/activities_controller.rb
Expand Up @@ -18,7 +18,7 @@ def index
includes(:user).
order('id DESC').
limit(Kandan::Config.options[:per_page])
end
end

first_activity = Activity.order('id').where(:channel_id => params[:channel_id]).first
first_activity_id = first_activity.id if not first_activity.nil?
Expand Down
1 change: 1 addition & 0 deletions app/models/user.rb
Expand Up @@ -15,6 +15,7 @@ def bushido_extra_attributes(extra_attributes)
self.first_name = extra_attributes["first_name"].to_s
self.last_name = extra_attributes["last_name"].to_s
self.email = extra_attributes["email"]
self.locale = extra_attributes["locale"]
end

def ensure_gravatar_hash
Expand Down

0 comments on commit d3f89ba

Please sign in to comment.