geomap 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/geomap.rb +2 -2
  2. metadata +1 -1
data/lib/geomap.rb CHANGED
@@ -3,7 +3,7 @@ require 'json'
3
3
  require 'net/http'
4
4
  require 'active_record'
5
5
 
6
- class Place
6
+ class Geomap
7
7
 
8
8
  attr_accessor :latitude, :longitude, :address
9
9
  class << self
@@ -53,6 +53,6 @@ end
53
53
 
54
54
  class ActiveRecord::Base
55
55
  def self.geo_mappable
56
- has_many :places, :dependent => :destroy
56
+ has_one :place, :dependent => :destroy
57
57
  end
58
58
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: geomap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.7
5
+ version: 0.0.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - choodur