Module: ROM::Plugins::Relation::Changeset

Extended by:
Notifications::Listener
Defined in:
changeset/lib/rom/plugins/relation/changeset.rb

Overview

Relation plugin which adds Relation#changeset method

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

TYPES =
{
  create: ROM::Changeset::Create,
  update: ROM::Changeset::Update,
  delete: ROM::Changeset::Delete
}.freeze

Class Method Summary collapse

Class Method Details

.subscribe(event_id, query = EMPTY_HASH, &block) ⇒ Object Originally defined in module Notifications::Listener

Subscribe to events

Parameters:

  • event_id (String)

    The event key

  • query (Hash) (defaults to: EMPTY_HASH)

    An optional event filter

Returns:

  • (Object)

    self