09 Mar '12, 12am

musing of a Pivot by @pivotallabs

Rails <3.1 has some gotchyas when using :inverse_of option. class Note < ActiveRecord::Base has_many :contacts, inverse_of: :note end class Contact < ActiveRecord::Base belongs_to :note, touch: true #for triggering the note observer when the contact is updated end class NotObserver def after_touch(note) note.contacts # does not have the new attributes updated unless you specify the :inverse_of end end # Somewhere in the code... contact.update_attributes.... When table names are not namespaced on a class. What is the best way to work with this if we want table names to be namespaced? class Foo::Bar < ActiveRecord::Base end > Foo::Bar.table_name == "bars" true

Full article: http://pivotallabs.com/users/jt/blog/articles/2046--stand...

Tweets

TE Tuesday ~ AMP Pivot Connector Series

digikey.com 06 Mar '12, 4pm

AMP Pivot Connector Series is a tool-less, user friendly solution for terminating signal and low-power connections. A conn...

Pivot Points

thefinance.sg 02 Mar '12, 6am

Patrick See on Which are harder – Selling a losing position or Exiting a winner Jared Seah on Do you want the doctor to ch...

My article on making a successful pivot as a startup #in @frenzoo @startupshk

My article on making a successful pivot as a st...

sgentrepreneurs.com 14 Mar '12, 12am

Entering into a pivot, you’ll have a natural advantage over fresh startups. You have a detailed, hands-on case study to le...