This project is archived and is in readonly mode.
new table name set by set_table_name not used by model
-
Jan Xie
- Tag changed from rails 3.0.0.beta4, table_name to activerecord set_table_name test, rails 3.0.0.beta4, table_name
-
Jan Xie
- Tag changed from activerecord set_table_name test, rails 3.0.0.beta4, table_name to rails 3.0.0.beta4, table_name
-
Jan Xie
table_name_prefix= and table_name_suffix= have the same problem too.
-
Santiago Pastorino
- State changed from new to open
- Tag changed from rails 3.0.0.beta4, table_name to rails 300beta4, table_name
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
Santiago Pastorino
- State changed from open to stale
-
Jan Xie
- State changed from stale to open
- Tag changed from rails 300beta4, table_name to table_name
Still exists in latest rails. I update the patch in attachment, including a test case.
[state:open]
-
Aaron Patterson
- State changed from open to incomplete
- Importance changed from to Low
AR tests fail when I apply this patch:
1) Failure: test_raises_error(InvalidTableNameFixturesTest) [test/cases/fixtures_test.rb:447]: FixtureClassNotFound expected but nothing was raised. -
Jan Xie
- Assigned user set to Aaron Patterson
The problem is class FunnyJoke added by patch is suppoesed to not exist, so FixtureClassNotFound will be raised.
I renamed FunnyJoke to GoodJoke, now all passed. See below updated patch.
-
Jan Xie
- No changes were found…
