«
»

Rails

Selectively load Ruby Facets modules

01.12.10 | 2 Comments

Ruby facets has a lot of useful libraries. Sometimes you only want to load the ones that you need. Here’s a little snippet that you can use

Rails won’t load facets as the ‘lib’ param is false. We then load the libraries manually through initializers. This helps when facets unwittingly clobbers some of the other gems you are using.

Tags:

2 Comments

have your say

Add your comment below, or trackback from your own site. Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

:

:


«
»