search for: polymorphic_tablenames

Displaying 1 result from an estimated 1 matches for "polymorphic_tablenames".

2008 Mar 05
4
has_many_polymorphs is breaking my spec file
...called labellable_methods.rb. The classes all get labelled with ''properties'', and i set out to write the Property class first, using bdd of course. This all went fine. However, when i came to start testing that the labelling was working properly, i added the following code: POLYMORPHIC_TABLENAMES = [:instructional_objects, :resources, :lessons, :courses] #this is breaking tests currently has_many_polymorphs :labellables, :from => POLYMORPHIC_TABLENAMES, :through => :labellings, :dependent => :destroy Now, whenever i run the spec file, it bombs out as soon as it hit...