Workaround a bug in Rails' inheritance scheme in dev mode