Support for `source` option in embedded resource attributes

So, it seems that the source attribute option is not supported by embedded resources.

For example, if my embedded resource has this:

attribute :value, :string, source: :second

It will return value as nil, but if it has this:

attribute :second, :string

Then it returns the correct string.

Is this a bug? Can we add support for that option?

Yes, this is a bug. Please open an issue on ash and I will address. We can and should support this :slight_smile:

Done attribute source option not working for embedded resources · Issue #1143 · ash-project/ash · GitHub

1 Like