07 May '13, 12am

Better Single-Table Inheritance through Model Delegation

Better Single-Table Inheritance through Model Delegation Posted by NathanLong on May 06, 2013 — 0 comments I’ve seen several articles recently on the evils of single table inheritance in Rails apps. While it can be problematic, I recently tried an approach to STI that I think works well. Here’s what it boils down to: Put common attributes in a single table, non-shared attributes in separate tables with foreign key references, and use object delegation so that each model transparently pulls what it needs from both. For details, see this post .

Full article: http://www.rubyflow.com/items/9255-better-single-table-in...

Tweets

Halia & Table at 7

Halia & Table at 7

ohsofickle.blogspot.com 18 May '13, 4pm

Their brunch selection isn't wide but it's good! Plus i REALLY LOVE THE INTERIOR OF THE RESTAURANT. I couldn't stop lookin...

Tesla improves Model S resale guarantee based on customer feedback: Gotta love a company that actually listen...

Tesla improves Model S resale guarantee based o...

treehugger.com 06 May '13, 7pm

Gotta love a company that actually listens to feedback and implements changes that its customers requested. About a month ...

Nobody Looks Better in Jeans #Fashion #Men

feelgoodstyle.com 06 May '13, 4pm

What does that mean? This company is as true to jeans as a fine winemaker to wine, a master chocolatier to chocolate. They...

BMW announces wide scale model upgrades for 2013

BMW announces wide scale model upgrades for 2013

paultan.org 07 May '13, 6am

Either to stay in front or within contention, BMW updates its production models twice a year. We’re not talking about full...

CIE Model Fleet Focus added to our range of model fleet galleries

CIE Model Fleet Focus added to our range of mod...

showbus.com 05 May '13, 3pm

16121 Leyland PD2 Highbridge CIE . C.I.E. (Coran lompair Eireann) roughly translates as Ireland's Transport Company and ve...

How to Use Simple Math to Get Better Insights

searchenginejournal.com 08 May '13, 11am

After a quick scan of the table you conclude most of the keywords in Ad Group #2 have a lower CTR, but that one of its key...

The Changing Priorities of #China’s Rich @weigu...

live.wsj.com 08 May '13, 9am

... the the ... I ... with their backs ... dining me now to discuss his agenda that set up on that with the company of agi...

The Recipe For Better Chips: Don't chip like you putt. Here's why...

The Recipe For Better Chips: Don't chip like yo...

golfdigest.com 08 May '13, 3pm

I cringe when I hear people say the mechanics of a chip shot are just like a putting stroke. It's like saying sprinting is...

Inspiring Better Lives

Inspiring Better Lives

fareast.com.sg 08 May '13, 8am

Far East Organization is the largest private property developer in Singapore, with a growing reputation for building innov...

Renault-Nissan CEO Rejects Battery Swapping, Leaving Better Place Stranded

Renault-Nissan CEO Rejects Battery Swapping, Le...

plugincars.com 06 May '13, 7pm

Renault has said the Fluence Z.E. will be the last battery swap car it makes. (Photo: Motavalli) It’s official: despite a ...