app/models/fooltip/link.rb in fooltip-0.0.5 vs app/models/fooltip/link.rb in fooltip-0.0.6

- old
+ new

@@ -1,10 +1,10 @@ module Fooltip class Link < ::ActiveRecord::Base PLACEMENT_MAPPINGS = { 1 => 'top', 2 => 'right', 3 => 'bottom', 4 => 'left' } TRIGGER_MAPPINGS = { 1 => 'click', 2 => 'hover', 3 => 'focus', 4 => 'manual' } - attr_accessible :placement, :trigger, :x, :y + attr_accessible :container_id, :popup_id, :placement, :trigger, :x, :y belongs_to :container belongs_to :popup validates :container, presence: true validates :popup, presence: true