Sha256: 65453bd264e24ae958f92feb52be77d6d4deca81e5ecbfe3b6f526b4a0554c80

Contents?: true

Size: 221 Bytes

Versions: 2

Compression:

Stored size: 221 Bytes

Contents

module C80Map
  class Area < ActiveRecord::Base
    belongs_to :building
    validates :coords, uniqueness: true
    after_save :update_json

    protected

    def update_json
      MapJson.update_json
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
c80_map-0.1.0.2 app/models/c80_map/area.rb
c80_map-0.1.0.1 app/models/c80_map/area.rb