Update main_adapter.rb

fixed rails 4.1.0