Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Allow AR objects to survive an `include Pacecar` if the table doesn't exist yet #2

Closed
rmm5t opened this Issue Sep 24, 2009 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

rmm5t commented Sep 24, 2009

Please pull this branch:
http://github.com/rmm5t/pacecar/commits/missing_table_survival

Relevant commit:
http://github.com/rmm5t/pacecar/commit/a8dadf029205e32dd333e49b379d7d2c31a0e676

  • Problem exposes itself when an AR object includes Pacecar, and also has an
    Observer tied to it (loading the model early). Upon an initial db:migrate, by
    loading the model early, Pacecar would raise an error that the table doesn't
    exist when defining the order scopes.
  • The column_names method in Pacecar::Helpers::ClassMethods was inaccessible
    because AR::Base already defines it.
  • Test included.
Owner

mjankowski commented Sep 24, 2009

All set.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment