Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Code samples for Medium article
class ProfileAttributeProvider
def initialize(model)
@model = model
end
def call
ProfileField.all.map do |field|
ActiveDynamic::AttributeDefinition.new(field.name, field.datatype)
end
end
private
attr_reader :model
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.