lib/picky/wrappers/bundle/location.rb in picky-4.0.0pre2 vs lib/picky/wrappers/bundle/location.rb in picky-4.0.0pre3

- old
+ new

@@ -38,23 +38,21 @@ end # Save the config, then dump normally. # def dump - bundle[:location_anchor] = @calculation.anchor + bundle['location_anchor'] = @calculation.anchor bundle.dump end # Load first the bundle, then extract the config. # def load bundle.load - # TODO Symbols (of the location_anchor!!!). - # It should always be a Symbol. - # - @calculation.anchor = bundle['location_anchor'] && bundle['location_anchor'].to_f || raise("Configuration 'location_anchor' for #{bundle.identifier} missing. Did you run rake index already?") + location_anchor = bundle['location_anchor'] + @calculation.anchor = location_anchor && location_anchor.to_f || raise("Configuration 'location_anchor' for #{bundle.identifier} missing. Did you run rake index already?") end end end \ No newline at end of file