Project

General

Profile

« Previous | Next » 

Revision 3c4051e9

Added by Joseph Magen about 10 years ago

fixes #4731 - Rails 3.2.8 causing _pkey constraint errors

View differences:

test/unit/taxonomix_test.rb
require 'test_helper'
class TaxonomixDummy < ActiveRecord::Base
self.table_name = 'environments'
include Taxonomix
attr_accessor :locations, :organizations
after_initialize :set_taxonomies_to_empty
def new_record?
true
end
def errors
OpenStruct.new :empty? => true
end
def initialize
def set_taxonomies_to_empty
self.locations = []
self.organizations = []
end

Also available in: Unified diff