You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/app/models/carto/users_group.rb

11 lines
379 B

require 'active_record'
module Carto
class UsersGroup < ActiveRecord::Base
# autosave must be explicitly disabled due to https://github.com/rails/rails/issues/9336
# but we probably should not autosave from a ternary table anyway
belongs_to :user, class_name: Carto::User, autosave: false
belongs_to :group, class_name: Carto::Group, autosave: false
end
end