Skip to content

Replace order strings with symbols/arel_table#298

Merged
jhawthorn merged 2 commits into
solidusio:masterfrom
jhawthorn:association_order_symbols
Aug 18, 2015
Merged

Replace order strings with symbols/arel_table#298
jhawthorn merged 2 commits into
solidusio:masterfrom
jhawthorn:association_order_symbols

Conversation

@jhawthorn

Copy link
Copy Markdown
Contributor

A rebase of #37 with feedback addressed. Also split part into #297

There are some issues that some users can encounter to to a lack of specific naming due to SQL errors on ordering. If the scope has something like .order('name') it may cause a SQL error when we join with another table that also has a name column.

As part of this, I got rid of a couple of generally terrible tests which rely VERY heavily on their specific implementation.

@athal7 I think this should have addressed your feedback in the previous PR.

We should be testing behaviour instead of generated SQL
@jhawthorn jhawthorn force-pushed the association_order_symbols branch from 6f65cd0 to 632477f Compare August 18, 2015 21:58
There are some issues that some users can encounter to to a lack of
specific naming due to SQL errors on ordering. If the scope has
something like `.order('name')` it may cause a SQL error when we join
with another table that also has a name column.

As part of this, I got rid of a couple of generally terrible tests which
rely VERY heavily on their specific implementation.
@jhawthorn jhawthorn force-pushed the association_order_symbols branch from 632477f to a50fd18 Compare August 18, 2015 22:25
@athal7

athal7 commented Aug 18, 2015

Copy link
Copy Markdown

👍

jhawthorn added a commit that referenced this pull request Aug 18, 2015
Replace order strings with symbols/arel_table
@jhawthorn jhawthorn merged commit f85b812 into solidusio:master Aug 18, 2015
@jhawthorn jhawthorn deleted the association_order_symbols branch August 18, 2015 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants