You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Class Student
delegate :type, to: school, prefix: :true
end
class School
include SimpleEnum::Mongoid
as_enum :type, [:business, :technical]
end
te(@student, school_type) # Doesn't seem to work
Taking care of delegated stuff can become pretty nasty I suppose... here the translation should propagate from the Student to the School model.
The text was updated successfully, but these errors were encountered:
Mhh, good point, any proposals on how to "fix" this - but I think delegates are nearly impossible to handle. One possible solution is the ability to append an argument scope: :school or something, that overrides Student?
Taking care of delegated stuff can become pretty nasty I suppose... here the translation should propagate from the Student to the School model.
The text was updated successfully, but these errors were encountered: