Files
2012-02-21 01:15:00 -05:00

1 line
941 B
JSON

[{"user_id": 34889, "stars": [], "topic_id": 37759, "date_created": 1306982427.036618, "message": "Here's my problem https://gist.github.com/1003813", "group_id": 447, "id": 1261804}, {"user_id": 32812, "stars": [], "topic_id": 37759, "date_created": 1307033647.551255, "message": "the OurUser class does NOT need the set_table_name call. STI automatically handles this providing the users table has a `type` field since your User class is not abstract. As for the `belongs_to` you want to inject an 'inherited' method onto the User class (inside if your module.) so when User is inherited you can get the class name and call belongs_to on that class giving the :class_name the proper value. ie: on `included` in your module, you add an `inherited` method to the class (probably want to chain it to not override any others.) which in turn adds what it needs to the inherited class. It's time to be meta.", "group_id": 447, "id": 1268694}]