Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Symbols fixup #1

Merged
merged 1 commit into from Oct 13, 2011
Merged

Symbols fixup #1

merged 1 commit into from Oct 13, 2011

Conversation

mat813
Copy link

@mat813 mat813 commented Oct 13, 2011

It makes bitmasks easier to use in Rails applications because you don't
have to wonder if you did cast what you got from your web forms.

it keeps hitting me and I end up with things like that :

>> c.code
[
    [0] :power,
    [1] :visuprod,
    [2] :no_tva
]
>> c.code << "power"
[
    [0] :power,
    [1] :visuprod,
    [2] :no_tva,
    [3] "power"
]

and it kinda confuse my app from time to time :-)

It makes bitmasks easier to use in Rails applications because you don't
have to wonder if you did cast what you got from your web forms.
joelmoss added a commit that referenced this pull request Oct 13, 2011
Symbols fixup to ensure that values are always returned as symbols regardless of how they were cast.
@joelmoss joelmoss merged commit b4d1722 into joelmoss:master Oct 13, 2011
@joelmoss
Copy link
Owner

Thx buddy!

spemmons added a commit that referenced this pull request Apr 2, 2012
move activity to a public repository
marcelotedeschi pushed a commit to marcelotedeschi/bitmask_attributes that referenced this pull request Nov 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants