I’ve been trying to use a custom initialize method on a class with a single param and a series of options, but the submitted values are not applied - the class always is crated with the default values.
My initialize method is very simple at this point:
def initialize(*args)
super
1+1
end
If I only configure options, then the submitted values are used.
I checked out the custom initializer spec and I noticed it doesn’t have a test for a mix of options and params.
Is mixing params and options with a custom initializer not supported?
If it is, could I get a functional example of the usage?
def initialize(param, *args)
super
1+1
end
didn’t work for me.
Thank you