Update to work with rails 4 and monologue 0.4.0.beta