lib/data_miner/step.rb in seamusabshere-data_miner-0.2.0 vs lib/data_miner/step.rb in seamusabshere-data_miner-0.2.1

- old
+ new

@@ -54,7 +54,11 @@ def affect(attr_name, attr_options = {}) attributes.affect! self, attr_name, attr_options end alias_method :store, :affect + + def map_to_attrs(method) + affected_attributes.map { |attr| attr.send method, self }.compact + end end end