Sha256: 66c1096cdf2d5d743dc42439e8019b7b904e036901975c080096746e9071cb25

Contents?: true

Size: 278 Bytes

Versions: 15

Compression:

Stored size: 278 Bytes

Contents

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

    protected

    def update_json
      MapJson.update_json
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
c80_map-0.1.0.24 app/models/c80_map/area.rb
c80_map-0.1.0.23 app/models/c80_map/area.rb
c80_map-0.1.0.22 app/models/c80_map/area.rb
c80_map-0.1.0.21 app/models/c80_map/area.rb
c80_map-0.1.0.20 app/models/c80_map/area.rb
c80_map-0.1.0.19 app/models/c80_map/area.rb
c80_map-0.1.0.18 app/models/c80_map/area.rb
c80_map-0.1.0.17 app/models/c80_map/area.rb
c80_map-0.1.0.16 app/models/c80_map/area.rb
c80_map-0.1.0.15 app/models/c80_map/area.rb
c80_map-0.1.0.14 app/models/c80_map/area.rb
c80_map-0.1.0.13 app/models/c80_map/area.rb
c80_map-0.1.0.12 app/models/c80_map/area.rb
c80_map-0.1.0.11 app/models/c80_map/area.rb
c80_map-0.1.0.10 app/models/c80_map/area.rb