Fix compatibility with Rails < 3.2.0 & remove monkey patch