Sha256: 9b3d514f9326aca1966f2fb4c154d10d3a9866e277b55a6577a32339785d8044
Contents?: true
Size: 455 Bytes
Versions: 13
Compression:
Stored size: 455 Bytes
Contents
module C80Map class Building < ActiveRecord::Base has_many :areas, :class_name => 'C80Map::Area', :dependent => :destroy belongs_to :building_representator, :polymorphic => true validates :coords, uniqueness: true after_save :update_json mount_uploader :img_bg, C80Map::BuildingImageUploader mount_uploader :img_overlay, C80Map::BuildingImageUploader private def update_json MapJson.update_json end end end
Version data entries
13 entries across 13 versions & 1 rubygems