agoragames/bettertabs — pull request #5 by manuelmeurer (2012-04-07 21:41:51+00:00)
Title: Add possibility to define default options (only attach_jquery_bettertabs_inline for now) in an initializer

I didn't want to render the JS code to activate the tabs directly after rendering them (it requires jQuery to be available at that point, which I include at the bottom of the page), so I used the attach_jquery_bettertabs_inline option but including it with every call to the helper got old very quick, so I added a simple Configuration class to be able to set attach_jquery_bettertabs_inline in an initializer.

The Configuration class could be used to store many more options (like render_only_active_content, class, id, etc.).