ruby 2, rails 4 compatibility