Use the new AR methods in both Rails 3 and 4