fix rails 4.1 protected attr error