Sha256: fe3002bccd106d95472fd8c8224625e604ca8c69f3dc203b1c4f9bd3f9656940

Contents?: true

Size: 216 Bytes

Versions: 27

Compression:

Stored size: 216 Bytes

Contents

module StandaloneMigrations
  @@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

27 entries across 27 versions & 4 rubygems

Version Path
standalone_migrations-4.0.4 lib/standalone_migrations/callbacks.rb
standalone_migrations-4.0.3 lib/standalone_migrations/callbacks.rb
standalone_migrations-4.0.2 lib/standalone_migrations/callbacks.rb
standalone_migrations-4.0.1 lib/standalone_migrations/callbacks.rb
standalone_migrations-4.0.0 lib/standalone_migrations/callbacks.rb
standalone_migrations-2.1.5 lib/standalone_migrations/callbacks.rb
ejhayes_standalone_migrations-2.2.0 lib/standalone_migrations/callbacks.rb