You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an ActiveRecord class has a method with the same name as a field in the schema, the generate_payload method should be able to populate the payload with that field.
An example of this is when initial is a field in the kafka schema, there should be no additional code to add to generate_payload
class Widget < ApplicationRecord
# Quite literally the first letter of the name
def initial
name.first
end
end
# == Schema Information
#
# Table name: widgets
#
# name :string(6) not null, primary key
The text was updated successfully, but these errors were encountered:
dorner
changed the title
Support helper_methods in generate_payload if they match schema field names
Support method sending in generate_payload if they match schema field names
Jun 8, 2020
When an ActiveRecord class has a method with the same name as a field in the schema, the generate_payload method should be able to populate the payload with that field.
An example of this is when
initial
is a field in the kafka schema, there should be no additional code to add to generate_payloadThe text was updated successfully, but these errors were encountered: