Support for Custom Field Types (Mongoid) #1260

Closed
fny opened this Issue Jul 23, 2012 · 2 comments

Comments

Projects
None yet
2 participants

fny commented Jul 23, 2012

Custom field types will run into "Need to map field #{field.type.to_s} for field name #{name} in #{model.inspect}" since the mappings are hardcoded in Adaptors::Mongoid#properties. If it makes any difference, I'm running Rails Admin master and Mongoid 2.4.

I've added my own bits to the block, but ideally one should be able to add custom mappings to the hash. I'd gladly make the addition, but I'm not sure of the preferred way to handle this (a config file of some sort?).

Collaborator

mshibuya commented Jul 26, 2012

I agree.
It needs to be cleaned up in customizable way, for both AR and Mongoid.

mshibuya was assigned Jul 26, 2012

Collaborator

mshibuya commented Nov 10, 2014

Mongoid type matching logic was refactored in 875c9ba, so RA no longer complains with unknown field type.

mshibuya closed this Nov 10, 2014

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