Skip to content

Instantly share code, notes, and snippets.

@daveworth
Created November 11, 2011 16:45
Show Gist options
  • Select an option

  • Save daveworth/1358484 to your computer and use it in GitHub Desktop.

Select an option

Save daveworth/1358484 to your computer and use it in GitHub Desktop.
def label=(temp_label)
#self.email_label = current_account.email_labels.find_or_create_by_name(temp_label)
label = EmailLabel.find_or_create_by_name_and_account_id(temp_label.downcase, account.id)
self.email_label = label
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment