Skip to content

Commit

Permalink
#acts_as_mappable now handles additional before_validation options
Browse files Browse the repository at this point in the history
  • Loading branch information
vpuzzella committed Dec 14, 2010
1 parent e7451ce commit b5363bd
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, :on => :create
before_validation :auto_geocode_address, options.dup.delete_if{|k,v|k == :auto_geocode}.reverse_merge!(:on => :create)
end
end
end
Expand Down

0 comments on commit b5363bd

Please sign in to comment.