zendeskarchive / representer

MIT License
45 stars 2 forks source link

Representer::Lightning does not map MySQL TINYInt(1) to boolean value #4

Open kartofeell opened 7 years ago

kartofeell commented 7 years ago

When Representer::Lightning is initialized with ActiveRecord Relation, then it queries DB directly and does not apply special type mappings done normally by ActiveRecord. More specifically, it does not map TINYINT(1) MySQL columns to true/false values, but returns 0 or 1 instead.