Extend core methods in Rails