Skip to content

Commit

Permalink
use reject instead of delete_at
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuzzella committed Dec 15, 2010
1 parent b5363bd commit 76a1d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/geokit-rails3/acts_as_mappable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def acts_as_mappable(options = {})
self.auto_geocode_error_message = options[:auto_geocode][:error_message] || 'could not locate address'

# set the actual callback here
before_validation :auto_geocode_address, options.dup.delete_if{|k,v|k == :auto_geocode}.reverse_merge!(:on => :create)
before_validation :auto_geocode_address, options.reject{|k,v|k == :auto_geocode}.reverse_merge!(:on => :create)
end
end
end
Expand Down

0 comments on commit 76a1d3d

Please sign in to comment.