Skip to content
This repository was archived by the owner on Aug 3, 2020. It is now read-only.
This repository was archived by the owner on Aug 3, 2020. It is now read-only.

use ActiveSupport::HashWithIndifferentAccess for field mappings #110

@jasonayre

Description

@jasonayre

To prevent stuff like below from happening:

https://www.dropbox.com/s/32yu3nnrd8pooqa/Screenshot%202015-11-12%2010.04.52.png?dl=0

Which prevents save/create of models if the user makes mistake of specifying field names as strings instead of symbols.

It will require activesupport as a dependency, however since most people using this gem will already be using rails, I don't see any reason not to add that dependency. Also if you add active model as a dependency as per #95 , dependency will be met anyways. Im happy to PR if you will accept.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions