Closed kristianmandrup closed 13 years ago
It looks like none of the code is Active Record specific? Is this strictly Active Model?
.send :"find_or_initializeby#{identifiers.join "and"}", _reference.values_at(_identifiers)
I think code such as this should be externalized in a separate location so any ORM adapter can easily provide its own adapter.
I'm making this effort in order to have e9s working in my app without being dependent on Active Record.
See https://github.com/archan937/rich_cms/issues#issue/7
It looks like none of the code is Active Record specific? Is this strictly Active Model?
.send :"find_or_initializeby#{identifiers.join "and"}", _reference.values_at(_identifiers)
I think code such as this should be externalized in a separate location so any ORM adapter can easily provide its own adapter.
I'm making this effort in order to have e9s working in my app without being dependent on Active Record.