-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git://github.com/glennpow/geokit-rails into …
…glennpow/master
- Loading branch information
Showing
9 changed files
with
157 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
# Load modules and classes needed to automatically mix in ActiveRecord and | ||
# ActionController helpers. All other functionality must be explicitly | ||
# required. | ||
if defined? Geokit | ||
require 'geokit' #requires the geokit gem | ||
require 'geokit-rails/defaults' | ||
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 | ||
require 'geokit' #requires the geokit gem | ||
require 'geokit-rails/defaults' | ||
require 'geokit-rails/acts_as_mappable' | ||
require 'geokit-rails/ip_geocode_lookup' | ||
|
||
# Automatically mix in ip geocoding helpers into ActionController classes. | ||
ActionController::Base.send :include, GeoKit::IpGeocodeLookup | ||
end | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
address_starbucks: | ||
addressable: starbucks (MockOrganization) | ||
street: 106 N Denton Tap Rd # 350 | ||
city: Coppell | ||
state: TX | ||
postal_code: 75019 | ||
lat: 32.969527 | ||
lng: -96.990159 | ||
|
||
address_barnes_and_noble: | ||
addressable: barnes_and_noble (MockOrganization) | ||
street: 5904 N Macarthur Blvd # 160 | ||
city: Irving | ||
state: TX | ||
postal_code: 75039 | ||
lat: 32.895155 | ||
lng: -96.958444 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
starbucks: | ||
name: Starbucks | ||
|
||
barnes_and_noble: | ||
name: Barnes & Noble |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bd51b58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any idea why it doesn't works now?
the workaround is using .joins(:your_through_table_name) to works
related issue #92