flex-attributes-filtered

works with flex attributes to help you programmatically filter your flex fields

3 years after

FlexAttributesHelpers

A collection of helpful model behavior for models that are using the flex_attributes plugin. That would be the hypomodern flex attributes plugin, not the original one by Eric Anderson. http://github.com/hypomodern/flex-attributes

Example

Simply call flex_filtered in your model and give it any options you'd like, like so:

flex_filtered :attribute_name_delegate => :equipment_type, :attribute_name_delegate_method => :installation_field_names

That's the full list of the options hash. N.B. this plugin defines is_flex_attribute for you. It won't be much help if you override that method.

Copyright (c) 2009 Matt Wilson ([email protected]), released under the MIT license

Related Repositories

flex-attributes

flex-attributes

EAV-based flexible attribute storage for ruby on rails ...

flashgrab

flashgrab

An Anki addon for pulling flashcard data (one-way sync) from XML. Optimized for ...


Top Contributors

hypomodern