Class: GoogleSafeBrowsing::FullHash
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- GoogleSafeBrowsing::FullHash
- Defined in:
- lib/google_safe_browsing/full_hash.rb
Class Method Summary collapse
Class Method Details
.delete_subbed ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/google_safe_browsing/full_hash.rb', line 5 def self.delete_subbed sub_join = " INNER JOIN gsb_sub_shavars\n ON gsb_sub_shavars.add_chunk_number = gsb_full_hashes.add_chunk_number\n AND gsb_sub_shavars.list = gsb_full_hashes.list\n SQL\n\n hash_ids = joins(sub_join).pluck(\"distinct \#{self.table_name}.id\")\n where(id: hash_ids).delete_all\nend\n" |