get the model class from the model attr if it's already set
get the model class from the model attr if it's already set

Previously the model_class method was only looking in the params hash, but sometimes there are no params and the model attribute is set. So we should check there first. Now we do.

democracyworks/hat-trick,democracyworks/hat-trick