Skip to content

Instantly share code, notes, and snippets.

@julesbravo
Created September 11, 2013 15:47
Show Gist options
  • Save julesbravo/6525534 to your computer and use it in GitHub Desktop.
Save julesbravo/6525534 to your computer and use it in GitHub Desktop.
created: function () {
var searchData = {
id : this.id,
title : this.attributes.title,
content : this.attributes.content,
meta_title : this.attributes.meta_title,
meta_description : this.attributes.meta_description,
meta_keywords : this.attributes.meta_keywords
};
// Not sure why this isn't working
GhostBookshelf.Knex('posts_search').insert(searchData);
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment