Files
grecia/app/models/map_location.rb
Senén Rodero Rodríguez 011ef41ae1 Add map location missing specs
2017-09-27 14:50:03 +02:00

11 lines
178 B
Ruby

class MapLocation < ActiveRecord::Base
belongs_to :proposal
belongs_to :investment
def available?
latitude.present? && longitude.present? && zoom.present?
end
end