fixed json api support
Merge branch 'custom_mime_type_support'
json api makes no sense if erb is allowed and not rendered
Merge branch 'custom_mime_type_support'