Compatibility with rails 4.1.8 in development mode. Fix issue#12