Refactoring and additions related to hint experiments

This goes along with "https://github.com/code-dot-org/blockly/pull/767".
Yes, thanks.  Moved a bunch of stuff to ActivityHint and added tests.


On Thu, Jul 24, 2014 at 10:58 AM, Laurel <notifications@github.com> wrote:

> In app/controllers/activity_hints_controller.rb:
>
> > @@ -0,0 +1,15 @@
> > +class ActivityHintsController < ApplicationController
> > +  def update
> > +    @activity_hint = ActivityHint.find(params[:id])
> > +    if @activity_hint
> > +      value = @activity_hint.hint_visibility
>
> can this ever be nil?
>
> maybe even put this logic in a method in the ActivityHint model so it's
> closer to where the meaning of hint_visibility is defined, and call it
> something more meaningful
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/code-dot-org/dashboard/pull/1065/files#r15361966>.
>