def bootsy_image_gallery_id=(value)
      if bootsy_image_gallery.nil? && value.present?
        self.bootsy_image_gallery = Bootsy::ImageGallery.find(value)
        bootsy_image_gallery.bootsy_resource = self
        bootsy_image_gallery.save
      else
        value
      end
    end
def bootsy_image_gallery_id=(value)
      if bootsy_image_gallery.nil? && value.present?
        self.bootsy_image_gallery = Bootsy::ImageGallery.find(value)
        bootsy_image_gallery.bootsy_resource = self
        bootsy_image_gallery.save
      else
        value
      end
    end
Public: Set the image gallery `id` and save
 the association between models.

 Examples

   container.id
   # => 34
   gallery.id
   # => 12
   container.bootsy_image_gallery_id = gallery.id
   container.image_gallery_id
   # => 12
   gallery.bootsy_resource.id
   # => 34