Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order the questions #20

Closed
alain-andre opened this issue May 12, 2014 · 4 comments
Closed

Order the questions #20

alain-andre opened this issue May 12, 2014 · 4 comments

Comments

@alain-andre
Copy link
Contributor

Hi all, I'm trying to order the questions by created_at and I cannot find the way to do it.
Any help please ?

@alain-andre
Copy link
Contributor Author

Found it ;p

@iffyuva
Copy link
Member

iffyuva commented May 13, 2014

glad to know that, because it gives me a feeling that code is not all greek and latin :)
maybe you can post your solution here, for future reference.

@alain-andre
Copy link
Contributor Author

Yes I did not see it was forced in the model. I just thought about it during my sleep ;p

rapidfire / app / models / rapidfire / question.rb

default_scope { order('created_at') }

@iffyuva
Copy link
Member

iffyuva commented May 13, 2014

cool.

jfr added a commit to jfr/rapidfire that referenced this issue Feb 16, 2017
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

No branches or pull requests

2 participants