sul-dlss / mods_display

MODS Display is a gem to centralize the display logic of MODS medadata.
Other
2 stars 5 forks source link

Refactor field configuration to not require explicit config methods #3

Closed jkeck closed 2 years ago

jkeck commented 11 years ago

When adding new field classes we have to explicitly add a matching config method in lib/mods_display/configuration.rb

We should use method_missing instead. In method_missing we can use const_get to try to auto-load any custom configuration class, then default to the base field configuration class.