Sha256: 649a2e363d9aafab14fb851ad7e4040adb402b0cdf4e3c8138c957d293db887f

Contents?: true

Size: 328 Bytes

Versions: 20

Compression:

Stored size: 328 Bytes

Contents

class DomainTerm < ActiveRecord::Base
  deprecated_attr_accessible  :model, :term

  # TODO we should add an index on this join table and remove the uniq query
  if Rails::VERSION::MAJOR > 3
    has_and_belongs_to_many :local_authorities, -> {uniq}
  else
    has_and_belongs_to_many :local_authorities, :uniq=> true 
  end
end

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
sufia-3.6.1 sufia-models/app/models/domain_term.rb
sufia-models-3.6.1 app/models/domain_term.rb
sufia-3.6.0 sufia-models/app/models/domain_term.rb
sufia-models-3.6.0 app/models/domain_term.rb
sufia-3.5.0 sufia-models/app/models/domain_term.rb
sufia-models-3.5.0 app/models/domain_term.rb
sufia-3.4.0 sufia-models/app/models/domain_term.rb
sufia-models-3.4.0 app/models/domain_term.rb
sufia-3.4.0.rc4 sufia-models/app/models/domain_term.rb
sufia-models-3.4.0.rc4 app/models/domain_term.rb
sufia-3.4.0.rc3 sufia-models/app/models/domain_term.rb
sufia-models-3.4.0.rc3 app/models/domain_term.rb
sufia-3.3.1 sufia-models/app/models/domain_term.rb
sufia-models-3.3.1 app/models/domain_term.rb
sufia-3.4.0.rc2 sufia-models/app/models/domain_term.rb
sufia-models-3.4.0.rc2 app/models/domain_term.rb
sufia-3.4.0.rc1 sufia-models/app/models/domain_term.rb
sufia-models-3.4.0.rc1 app/models/domain_term.rb
sufia-3.3.0 sufia-models/app/models/domain_term.rb
sufia-models-3.3.0 app/models/domain_term.rb