Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: lib/entity.rb
  2. ===================================================================
  3. --- lib/entity.rb       (revision 4448)
  4. +++ lib/entity.rb       (working copy)
  5. @@ -50,11 +50,7 @@
  6.    # Create methods that determine whether entity is on named search engine
  7.    SearchEngine.ALL.each do | se |
  8.      send :define_method, "on_#{se.short_name.downcase}?" do
  9. -      # This is the last time I fix this.  If one more person comes in here and
  10. -      # changes it to something that can't handle new records, I'm going to kill
  11. -      # their entire fucking family.
  12. -#adding a try to work around nil engine that keeps coming up for new records  
  13. -      self.engine.try(:SeId) == se.id      
  14. +      self.engine == se
  15.      end
  16.    end