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

Accessor for first default child in a selection list. #13

Open
mattconnolly opened this issue Mar 10, 2014 · 0 comments
Open

Accessor for first default child in a selection list. #13

mattconnolly opened this issue Mar 10, 2014 · 0 comments

Comments

@mattconnolly
Copy link
Contributor

Given a selections group, I would like a method for the first default item in a group. i.e.:

Selection.model_genre.children.where(:is_default => true).order(:position_value).first

->

Selection.model_genre.default

ridget pushed a commit to 2rk/selections that referenced this issue May 29, 2014
ridget pushed a commit to 2rk/selections that referenced this issue May 29, 2014
nigelr added a commit that referenced this issue May 29, 2014
Return first default item in a group #13
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

1 participant