update achievement gain date to submission date(not grading date)

1. It makes the leaderboard more fair.
2. Tested properly, it works.
no hints ?

On Tue, Sep 9, 2014 at 10:59 AM, Raymoond Tang <notifications@github.com>
wrote:

> In app/models/user_achievement.rb:
>
> > @@ -4,4 +4,26 @@ class UserAchievement < ActiveRecord::Base
> >    belongs_to :user_course
> >    belongs_to :achievement
> >
> > +  def update_date
>
> THERE IS A BETTER WAY. please think HARDER.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Coursemology/coursemology.org/pull/204/files#r17279900>
> .
>