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

Is there a way to do this without the string eval, maybe define_method or something?