lib/picky/wrappers/bundle/location.rb in picky-4.0.0pre1 vs lib/picky/wrappers/bundle/location.rb in picky-4.0.0pre2
- old
+ new
@@ -6,13 +6,12 @@
# A location calculation recalculates a location to the Picky internal location.
#
class Location < Calculation
- def initialize bundle, options = {}
+ def initialize bundle, user_grid, options = {}
super bundle
- user_grid = options[:grid] || raise("Gridsize needs to be given for location #{bundle.identifier}.")
anchor = options[:anchor] || 0.0
precision = options[:precision] || 1
@calculation = Calculations::Location.new user_grid, anchor, precision
end
\ No newline at end of file