Class: Location

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Diaspora::Federated::Base
Defined in:
app/models/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Diaspora::Federated::Base

included

Instance Attribute Details

#coordinatesObject

Returns the value of attribute coordinates


5
6
7
# File 'app/models/location.rb', line 5

def coordinates
  @coordinates
end

Instance Method Details

#split_coordsObject


14
15
16
# File 'app/models/location.rb', line 14

def split_coords
  self.lat, self.lng = coordinates.split(',') if coordinates.present?
end