Skip to content

Instantly share code, notes, and snippets.

@libryder
Created September 10, 2012 17:20
Show Gist options
  • Save libryder/3692268 to your computer and use it in GitHub Desktop.
Save libryder/3692268 to your computer and use it in GitHub Desktop.
def some_method
if some_conditional
some_sql_query
else
nil
end
end
if some_method.nil?
perform_some_action
else
do_something_else
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment