Added rails 4.0 & ruby 2.0 support