Availability for rails 3.1 and higher