Turn attribute to string before performing string operations, don't rescue for everything and return true
Merge pull request #7 from ministrycentered/master

Fix issue with media_type_ok?