railties >= 3.1 (rails 4 support)