test/integration/app/app/models/geo/state.rb in ultrasphinx-1.5.3 vs test/integration/app/app/models/geo/state.rb in ultrasphinx-1.6
- old
+ new
@@ -1,5 +1,6 @@
class Geo::State < ActiveRecord::Base
- has_many :"geo/addresses"
+ has_many :addresses, :class_name => "Geo::Address"
is_indexed :concatenate => [{:class_name => 'Geo::Address', :field => 'name', :as => 'address_name'}]
+ #:fields => [{:field => 'abbreviation', :as => 'company_name'}],
end