Created
February 24, 2011 02:56
-
-
Save pnegri/841670 to your computer and use it in GitHub Desktop.
what a better way to do this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_account_id | |
return false if BimbooAccount.current.nil? | |
self.bimboo_account_id = BimbooAccount.current._id | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def set_account_id | |
!BimbooAccount.current.nil? and self.bimboo_account_id = BimbooAccount.current._id | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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