Sha256: 464d1b2470079a73d71132d37e8e228e09622e3d924c21558df6e7dd6b250bdb

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

module StandaloneMigrationsNew
  @@callbacks ||= []

  def self.on_loaded(&block)
    @@callbacks << block
  end

  def self.run_on_load_callbacks
    @@callbacks.each do |callback|
      callback.call
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
standalone_migrations_new-7.1.2 lib/standalone_migrations_new/callbacks.rb
standalone_migrations_new-7.1.1 lib/standalone_migrations_new/callbacks.rb
standalone_migrations_new-7.1.0 lib/standalone_migrations_new/callbacks.rb