Last active
December 28, 2020 23:32
-
-
Save dsasse07/4778cfb000b0dd4cd4ad98b6bdab7b88 to your computer and use it in GitHub Desktop.
Calling refactored method from a module
This file contains hidden or 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
class Vhs | |
include GenericHelpers | |
extend GenericHelpers | |
def self.count_vhs_by_rentals | |
make_hash_by_attribute(Rental.all, "vhs") | |
end | |
def self.count_vhs_by_client | |
make_hash_by_attribute(Rental.all, "client") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment