rails 3, rails 4 support