Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleForm unnecessary access the database for associations #228

Open
jacob-carlborg opened this issue Jun 5, 2013 · 0 comments
Open

SimpleForm unnecessary access the database for associations #228

jacob-carlborg opened this issue Jun 5, 2013 · 0 comments

Comments

@jacob-carlborg
Copy link

I've noticed that simple_form eagerly fetches records for an association. Example:

<%= f.association :foo, as: :autocomplete_collection, url: foo_path  %>

That's completely unncessary since the collection is never used for the :autocomplete_collection type. The whole point I'm using this type is because the data in that table is very large. Is there a way we can add an empty collection option, collection: [], somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant