Skip to content

Instantly share code, notes, and snippets.

@dsasse07
Last active December 28, 2020 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsasse07/4778cfb000b0dd4cd4ad98b6bdab7b88 to your computer and use it in GitHub Desktop.
Save dsasse07/4778cfb000b0dd4cd4ad98b6bdab7b88 to your computer and use it in GitHub Desktop.
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