We'll respond shortly.
braid remove vendor/railsis not sufficient! The reason is when you add a external with Braid it also adds a remote branch in your Git repository. If you re-add the external, the old remote will be reused, even if you specify a different branch. To avoid this, remove the remote in addition to removing the external. To view your remotes run
git remoteand remove a remote with
git remove rm some/remote/name.
Weirdness with using
serialized with Single Table Inheritance in Rails
If you have a class that uses a serialized categories attribute like this:
class Wibble < ActiveRecord::Base serialized :categories end
You can do:
wibble = Wibble.create!(:categories => ['Restaurants', 'Bars']) wibble.reload.categories #=> ['Restaurants', 'Bars']
We’ve experienced problems with this once we added single table inheritance (STI) to the Wibble class.
class Thingie < ActiveRecord::Base end class Wibble < Thingie serialized :categories end
Now, sometimes reloading a Wibble would return the serialized string instead of the array:
wibble = Wibble.create!(:categories => ['Restaurants', 'Bars']) wibble.reload.categories #=> "-- n- Restaurantsn- Barsn"
Our solution, while not ideal, was to move the serialized declaration to the STI superclass.
class Thingie < ActiveRecord::Base serialized :categories end