-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe
Right now, association is internally implemented as a field, with a magic :assocation option.
Describe the feature you'd like to see implemented
I'd implement association as a proper class internally, similar to Field.
def self.association(method, options = {}, &block)
validate_blueprint!(options[:blueprint], method)
make_association(
method,
options.merge(
extractor: options.fetch(:extractor) { AssociationExtractor.new }
),
&block
)
endDescribe alternatives you've considered
No response
Additional context
No response
Reactions are currently unavailable