Update base.rb to support new rails syntax