archan937 / rich_cms

Enrichments (e9s) module for a pluggable CMS frontend
http://codehero.es/rails_gems_plugins/rich_cms
MIT License
42 stars 16 forks source link

Updated generators to be configurable for alternative ORMs #5

Closed kristianmandrup closed 13 years ago

kristianmandrup commented 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.

archan937 commented 13 years ago

See https://github.com/archan937/rich_cms/issues#issue/7