https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292020-03-29T07:33:44ZRedmineRedmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=969822020-03-29T07:33:44ZAlexander Meindl
<ul><li><strong>File</strong> <a href="/attachments/25090">full_qualified_version_class_version2.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/25090/full_qualified_version_class_version2.patch">full_qualified_version_class_version2.patch</a> added</li></ul><p>I added another version of patch, which uses Rails 5 where.not and Arel::Table. With this solution, no more table name specification is required.</p>
<p>Both solutions work, but second one is more cleaner - but more refactoring.</p> Redmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=1011642021-03-01T14:58:16ZGo MAEDA
<ul><li><strong>Tracker</strong> changed from <i>Patch</i> to <i>Defect</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul><p>Steps to reproduce the issue:<br /><pre>
echo gem \'attr_encrypted\' >> Gemfile.local
bundle install
bin/rails test test/unit/project_test.rb -n test_move_a_root_project_to_a_project
</pre></p> Redmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=1011662021-03-01T17:48:42ZPavel Rosický
<ul></ul><p>I think the first variant should be preferred, see <a class="external" href="https://github.com/rails/rails/issues/36761">https://github.com/rails/rails/issues/36761</a></p> Redmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=1011722021-03-02T02:25:20ZGo MAEDA
<ul><li><strong>Target version</strong> changed from <i>Candidate for next minor release</i> to <i>4.0.8</i></li></ul><p>I will commit the former patch, <a class="attachment" href="https://www.redmine.org/attachments/25089">full_qualified_version_class.patch</a> soon.</p> Redmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=1011892021-03-03T14:39:54ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Committed the patch. Thank you for reporting and fixing the issue.</p> Redmine - Defect #33206: Unable to autoload constant Version.table_name if gems uses Version classhttps://www.redmine.org/issues/33206?journal_id=1011932021-03-04T00:44:45ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>Target version</strong> changed from <i>4.0.8</i> to <i>4.1.2</i></li></ul>