Hi everybody.
I am using ClassTableInheritance and have little doubt about subclasses
values. From documentation example in
http://sequel.jeremyevans.net/rdoc-plugins/classes/Sequel/Plugins/ClassTableInheritance.html,
if I acces first Employee with
e = Employee.first
e.class # => Manager
e.values # => {:id => 1, :name => 'Buff', :kind => 'Manager'}
How can I access all instance values transparently. Something like:
e.all_values # => {:id => 1, :name => 'Buf', :kind => 'Manager', :num_staff
=> 3}
And why that is not default behaviour for "values" method?
Thank you for your ideas.
--
David
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.