Module: Nightcrawler::Migration

Defined in:
lib/nightcrawler/migration.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/nightcrawler/migration.rb', line 3

def self.extended(base)
  class << base
    def announce_with_nightcrawler(message)
      announce_without_nightcrawler("#{message} - #{shard_key}")
    end

    alias_method_chain :migrate, :nightcrawler
    alias_method_chain :announce, :nightcrawler
  end
end

Instance Method Details

#migrate_with_nightcrawlerObject



14
15
# File 'lib/nightcrawler/migration.rb', line 14

def migrate_with_nightcrawler
end