title: LoadError: Expected {app_path}/models/model file.rb to define model name
body: <p>I am getting this error While running this </p>
  
  <pre><code>LoadError: Expected /home/user/Desktop/Tripurari/myapp/app/models/host.rb to define Host##
  </code></pre>
  
  <p>But every thing on it's place. Can some one tell me what the exact problem is below method. </p>
  
  <pre><code>def self.check_all(keyword)
    memo_mutex = Mutex.new
    memo       = {}
    threads    = []
    name       = keyword.keyword
    SITES.each do |site_and_options|
      threads &lt;&lt; Thread.new do
        @host = Host.find_or_create_by_name(site)
        if keyword.unavailable_usernames.find_by_host_id(@host.id)
          memo[@host.name] = true
        else
          memo[@host.name] = false
        end
      end
    end
    threads.each { |t| t.join }
    memo
  end
  </code></pre>