Sha256: 3ae1f594178070c4fcb2093fa9bb105fd69c040cf8f1c4349b3a5b5dafc643e0

Contents?: true

Size: 1.32 KB

Versions: 19

Compression:

Stored size: 1.32 KB

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"
#
require 'geokit'
if defined? Geokit
  # rather than unvendor this, let's try to get rid of the acts_as_mappable dependency (?)
  require File.expand_path('../geokit-rails/defaults', __FILE__)
  require File.expand_path('../geokit-rails/adapters/abstract', __FILE__)
  require File.expand_path('../geokit-rails/acts_as_mappable', __FILE__)
  require File.expand_path('../geokit-rails/ip_geocode_lookup', __FILE__)
  
  # Automatically mix in distance finder support into ActiveRecord classes.
  ActiveRecord::Base.send :include, GeoKit::ActsAsMappable
  
  # # Automatically mix in ip geocoding helpers into ActionController classes.
  # ActionController::Base.send :include, GeoKit::IpGeocodeLookup
else
  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

19 entries across 19 versions & 1 rubygems

Version Path
earth-1.0.3 vendor/geokit-rails/lib/geokit-rails.rb
earth-1.0.2 vendor/geokit-rails/lib/geokit-rails.rb
earth-1.0.1 vendor/geokit-rails/lib/geokit-rails.rb
earth-1.0.0 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.12.4 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.12.3 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.12.2 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.12.1 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.12.0 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.20 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.19 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.18 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.17 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.16 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.15 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.14 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.13 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.12 vendor/geokit-rails/lib/geokit-rails.rb
earth-0.11.11 vendor/geokit-rails/lib/geokit-rails.rb