Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Calling refactored method from a module
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