Skip to content

Instantly share code, notes, and snippets.

@alexeckermann
Forked from oliyoung/ruby scope
Created July 14, 2011 01:00
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 alexeckermann/1081666 to your computer and use it in GitHub Desktop.
Save alexeckermann/1081666 to your computer and use it in GitHub Desktop.
@reward = place.rewards.active
@reward = at_place ? @reward.cellar_door.first : @reward.regular.first
# better?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment