Skip to content

Instantly share code, notes, and snippets.

@ravicious
Created August 22, 2010 21:41
Show Gist options
  • Select an option

  • Save ravicious/544312 to your computer and use it in GitHub Desktop.

Select an option

Save ravicious/544312 to your computer and use it in GitHub Desktop.
def weight
(parameters.first(:conditions => {:overrides => "start_weight"}).try(:value) || plane.start_weight).to_i
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment