RubyoffRails/Episode6 — pull request #8 by moserrya (2012-12-19 07:13:05+00:00)
Title: Episode 6 Half-Eagle

Did this using Postgres (not sure if that was the intent). Rather make Automobile inherit from Vehicle if you already have it inheriting from ActiveRecord will all of the attendant naming conventions :'(

Cannot for the life of me figure out how to return vehicle count using a class variable. Let's say I put @@count = 0 inside of the vehicle class - think I want to put @@count += 1 inside of def initialize, but can't do it because of ActiveRecord - get wrong number of arguments (1 for 0). Tried def after_initialize, but this proved useless. Is there some way to make this work?