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
classStatus < EnumerateIt::Baseassociate_values(:busy,:away,:'out of office',:'in a meeting'
...
end
Will error with NameError: wrong constant name OUT OF OFFICE, NameError: wrong constant name IN A MEETING etc.
Workaround involves using a hash instead of an array:
classStatus < EnumerateIt::Baseassociate_values(busy: 'busy',away: 'away',out_of_office: 'out of office',in_a_meeting: 'in a meeting'
...
end
I have a patch I can submit for which should allow the use of symbols with spaces in it if you're interested. The patch involves removing spaces before the call to const_set in base.rb.
I also wanted to provide this solution to others as well.
The text was updated successfully, but these errors were encountered:
In
enumerations/status.rb
Will error with
NameError: wrong constant name OUT OF OFFICE
,NameError: wrong constant name IN A MEETING
etc.Workaround involves using a hash instead of an array:
I have a patch I can submit for which should allow the use of symbols with spaces in it if you're interested. The patch involves removing spaces before the call to
const_set
inbase.rb
.I also wanted to provide this solution to others as well.
The text was updated successfully, but these errors were encountered: