Add #default_scope to rails_api

Method #default_scope have different API for rails 3 and rails 4