Implement handy interface for configuring filtered tables
handy interface for configuring :except and :only discussed #18 and asakusa.rb meetup.
# Usage
DatabaseRewinder.filter_options = { except: ["foos"] }
DatabaseRewinder.clean_all
I named filter_options=, but I'll leave other candidates :memo:
- filter_settings
- filtered_tables
- filtered_table_options
- filter_table_options
- table_options
- tables_to_filter
- filtering_options
- filtering
Hey guys, is this happening or what? This is very important. :+1:
:+1: for merging. It'll be very useful.
Any news on this one?
I agree that we need this interface. I'd love to merge this as soon as we come up with a good name. Any more suggestions?
What about plain DatabaseRewinder.tables = {}?
Both DatabaseRewinder.tables and DatabaseRewinder.filter_table_options are good names.
Nevertheless, the functionality is way more important than the naming IMO.