0

Possible Duplicate:
What does map(&:name) mean in Ruby?

Assume that Game is an active record model, what does the & mean in the following code?

Games.group_by(&:genre)
Community
  • 1
  • 1
Brand
  • 1,681
  • 1
  • 24
  • 32

1 Answers1

1

See this: What do you call the &: operator in Ruby?

Community
  • 1
  • 1
Mark Westling
  • 5,904
  • 4
  • 26
  • 30