Sha256: eb08977d61e73fa948b5f0c6ab011b20749a7678682f74844a065395ad7607f9

Contents?: true

Size: 208 Bytes

Versions: 4

Compression:

Stored size: 208 Bytes

Contents

class UntiedUserObserver < Untied::Consumer::Observer
  observe :user, :from => :goliath

  def after_create(payload)
    puts "Creating user"
    User.create(payload.fetch(:user, {}).slice(:name))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
untied-0.0.7.pre3 examples/rails-consumer/app/models/untied_user_observer.rb
untied-0.0.5 examples/rails-consumer/app/models/untied_user_observer.rb
untied-0.0.4 examples/rails-consumer/app/models/untied_user_observer.rb
untied-0.0.1 examples/rails-consumer/app/models/untied_user_observer.rb