Sha256: 66142565af360b205ddf4e5bd880e4a3232067da7e44425c9460adbed5e3636d

Contents?: true

Size: 406 Bytes

Versions: 167

Compression:

Stored size: 406 Bytes

Contents

class CustomLocation < ActiveRecord::Base
  belongs_to :company
  acts_as_mappable :distance_column_name => 'dist', 
                   :default_units => :kms, 
                   :default_formula => :flat, 
                   :lat_column_name => 'latitude', 
                   :lng_column_name => 'longitude'
                   
  def to_s
    "lat: #{latitude} lng: #{longitude} dist: #{dist}"
  end
end

Version data entries

167 entries across 167 versions & 14 rubygems

Version Path
geokit-rails-2.5.0 test/models/custom_location.rb
geokit-rails-2.3.2 test/models/custom_location.rb
geokit-rails-2.3.1 test/models/custom_location.rb
geokit-rails-2.3.0 test/models/custom_location.rb
geokit-rails-2.2.0 test/models/custom_location.rb
geokit-rails-2.1.0 test/models/custom_location.rb
geokit-rails-2.0.1 test/models/custom_location.rb
geokit-rails-2.0.0 test/models/custom_location.rb
geokit-rails-2.0.0.rc1 test/models/custom_location.rb
geokit-ar-0.0.1 test/models/custom_location.rb
earth-1.0.3 vendor/geokit-rails/test/models/custom_location.rb
earth-1.0.2 vendor/geokit-rails/test/models/custom_location.rb
earth-1.0.1 vendor/geokit-rails/test/models/custom_location.rb
earth-1.0.0 vendor/geokit-rails/test/models/custom_location.rb
earth-0.12.4 vendor/geokit-rails/test/models/custom_location.rb
earth-0.12.3 vendor/geokit-rails/test/models/custom_location.rb
earth-0.12.2 vendor/geokit-rails/test/models/custom_location.rb
earth-0.12.1 vendor/geokit-rails/test/models/custom_location.rb
earth-0.12.0 vendor/geokit-rails/test/models/custom_location.rb
earth-0.11.20 vendor/geokit-rails/test/models/custom_location.rb