public
Description: A Rails plugin that makes your applications geo-aware.
Homepage: http://graticule.rubyforge.org/plugin.html
Clone URL: git://github.com/collectiveidea/acts_as_geocodable.git
Click here to lend your support to: acts_as_geocodable and make a donation at www.pledgie.com !
acts_as_geocodable / init.rb
100644 9 lines (8 sloc) 0.279 kb
1
2
3
4
5
6
7
8
9
begin
  require 'graticule'
rescue LoadError
  raise "Graticule >= 0.2.0 is required for acts_as_geocodable"
end
require 'acts_as_geocodable'
 
ActiveRecord::Base.send :include, CollectiveIdea::Acts::Geocodable
ActionController::Base.send :include, CollectiveIdea::RemoteLocation