Fix build on ruby < 2.0.0
Filtering params when passing to update