companionstudio / islay

A Rails engine which forms the base for a website back-end.
MIT License
0 stars 0 forks source link

Create search API #7

Closed lukesutton closed 11 years ago

lukesutton commented 12 years ago

Extensions need to be able to expose models as being searchable. In order to be composable and extensible, this will have to be implemented without views.

lukesutton commented 11 years ago

There is a version of this now, but it conflicts with Rail's DB introspection by greedily requiring any models configured to be searchable.

The fix for this is to delay compiling the search options until as late as possible. May have some performance implications, so we'll need to investigate different patterns for doing this.