call to_hash before sanitize_for_mass_assignment to allow Hashie::Mash support
Merge pull request #3442 from aj0strow/hashie-support

call to_hash before sanitizing to allow Hashie::Mash support