   activate: (state) ->
     @editorSubscription = atom.workspaceView.eachEditorView (editor) =>
       if editor.attached
+        @detectRubyMotion(editor)
         @enableAutocomplete(editor)
 
     @collectSnippets (prefixes) =>

        word1.toLowerCase().localeCompare(word2.toLowerCase())
      callback keys

  lookUpInDash: (editor) ->
    word = editor.getWordUnderCursor(includeNonWordCharacters: false)
    return if word is ''

_ = require 'underscore-plus'
fs = require 'fs'
pathmod = require 'path'
RubyMotionAutocompleteView = require './rubymotion-autocomplete-view'
# FIXME: dirty hack for wrong module path detection on `apm test`
snippetsModPath = _.find atom.packages.getAvailablePackagePaths(), (path) ->
