fix ignore_types to work with FlashHash in rails 4.1