needs to be before?
This commit is contained in:
parent
5928969724
commit
7cf0ddc2ee
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class Mapping < ActiveRecord::Base
|
||||||
belongs_to :map, :class_name => "Map", :foreign_key => "map_id", touch: true
|
belongs_to :map, :class_name => "Map", :foreign_key => "map_id", touch: true
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
after_destroy :remove_defer
|
before_destroy :remove_defer
|
||||||
|
|
||||||
validates :xloc, presence: true,
|
validates :xloc, presence: true,
|
||||||
unless: Proc.new { |m| m.mappable_type == 'Synapse' }
|
unless: Proc.new { |m| m.mappable_type == 'Synapse' }
|
||||||
|
|
Loading…
Add table
Reference in a new issue