Skip to content

Instantly share code, notes, and snippets.

@pnegri
Created February 24, 2011 02:56
Show Gist options
  • Save pnegri/841670 to your computer and use it in GitHub Desktop.
Save pnegri/841670 to your computer and use it in GitHub Desktop.
what a better way to do this?
def set_account_id
return false if BimbooAccount.current.nil?
self.bimboo_account_id = BimbooAccount.current._id
end
def set_account_id
!BimbooAccount.current.nil? and self.bimboo_account_id = BimbooAccount.current._id
end
def set_account_id
BimbooAccount.valid_current? and self.bimboo_account_id = BimbooAccount.current_id
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment