rails 4.1.3 application with Geocoder gem has the following attributes on a model
t.decimal :origin_lon, :precision => 15, :scale => 10
t.decimal :origin_lat, :precision => 15, :scale => 10
t.point :origin_lonlat, :srid => 3857
t.decimal :destination_lon, :precision => 15, :scale => 10
t.decimal :destination_lat, :precision => 15, :scale => 10
t.point :destination_lonlat, :srid => 3857
The model is defined with
geocoded_by :origin, :latitude => :origin_lat, :longitude => :origin_lon
geocoded_by :destination, :latitude => :destination_lat, :longitude => :destination_lon
However if I run in the console:
Circuit.create(origin: 'avenue des Champs-Élysées, 90 Paris', destination: 'Place Mariejol, Antibes')
don't look it up, it's the Picasso Museum...
only destination data is being populated. If the order of the geocoded_by instructions are inverted and the server is re-started, then the origin data is being populated. So clearly only one call for geocoded_by is possible under this syntax.
What syntax allows for the two simultaneous searches?