Skip to content

Add convert_value_to_type for atom type#268

Open
tnt-dev wants to merge 1 commit into
ErlyORM:masterfrom
tnt-dev:convert-to-atom
Open

Add convert_value_to_type for atom type#268
tnt-dev wants to merge 1 commit into
ErlyORM:masterfrom
tnt-dev:convert-to-atom

Conversation

@tnt-dev

@tnt-dev tnt-dev commented Jul 14, 2017

Copy link
Copy Markdown
Contributor

We can give a field a data type of 'atom' in a model, but in boss_record_lib.erl, in convert_value_to_type/2, this type is not handled and models receive binary or string values.
So I think it's better to convert them to atoms.

@danikp

danikp commented Jul 15, 2017

Copy link
Copy Markdown
Member

please add more info to your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants