I have a Location that has_many Item class. items have a scope for is_enabled. I can do
loc=Location.find(1)
loc.items.is_enabled
# and
loc.item_ids
# how would I do?
loc.item_ids.is_enabled
thx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use: