Created
July 16, 2016 01:33
-
-
Save kenzotakahashi/c9c4b54eb5ee411d327937bbdb5827bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def customer_count(status, gender) | |
Customer.where(status: status, gender: gender).size | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment