Fix Rubocop task
Support #to_adapter