Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class ContactAttributeProvider
def initialize(model)
@model = model
end
def call
[
ActiveDynamic::AttributeDefinition.new('age', datatype: ActiveDynamic::DataType::Integer, default_value: 18),
ActiveDynamic::AttributeDefinition.new('description')
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.