Sha256: 7a929e549ca3e51dcd86e072e8db31c06f74c39b09f5791e618b58baa297e72b

Contents?: true

Size: 992 Bytes

Versions: 95

Compression:

Stored size: 992 Bytes

Contents

# Load modules and classes needed to automatically mix in ActiveRecord and 
# ActionController helpers.  All other functionality must be explicitly 
# required.
#
# Note that we don't explicitly require the geokit gem. 
# You should specify gem dependencies in your config/environment.rb: config.gem "geokit"
#
begin
  require 'geokit'
  require 'geokit-rails/defaults'
  require 'geokit-rails/adapters/abstract'
  require 'geokit-rails/acts_as_mappable'
  require 'geokit-rails/ip_geocode_lookup'
  
  # Automatically mix in distance finder support into ActiveRecord classes.
  ActiveRecord::Base.send :include, GeoKit::ActsAsMappable
rescue LoadError
  message=%q(WARNING: geokit-rails requires the Geokit gem. You either don't have the gem installed,
or you haven't told Rails to require it. If you're using a recent version of Rails: 
  config.gem "geokit" # in config/environment.rb
and of course install the gem: sudo gem install geokit)
  puts message
  Rails.logger.error message
end

Version data entries

95 entries across 95 versions & 3 rubygems

Version Path
earth-0.11.7 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.6 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.5 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.4 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.3 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.2 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.1 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.0 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.7.0 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.6 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.5 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.4 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.3 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.2 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.1 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.6.0 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.5.4 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.5.3 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.5.2 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.5.0 vendor/geokit-rails/lib/geokit-rails.rb