Polymorphic filter #549
ravensnowbird
started this conversation in
Ideas
Replies: 2 comments
-
You should be able to do this with object: object :obj, class: ActiveRecord::Base Or as an interface: interface :obj, methods: %i[created_at updated_at] |
Beta Was this translation helpful? Give feedback.
0 replies
-
For the cases when https://github.com/antulik/active_interaction-extras#object-multiple-classes |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a generic interaction that takes a object of any class and look at
created_at
updated_at
and do some data manipulation return the some value. Currently my work around is sending a hashit would be nice to have the filter be able to use ActiveRecord::Object instead of
Car
Or say polymorphic: true.Beta Was this translation helpful? Give feedback.
All reactions