Skip to content

Instantly share code, notes, and snippets.

@BrianTheCoder
Created January 21, 2015 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrianTheCoder/09c8678239c0a114241f to your computer and use it in GitHub Desktop.
Save BrianTheCoder/09c8678239c0a114241f to your computer and use it in GitHub Desktop.
Deface::Override.new({
virtual_path: "spree/admin/taxonomies/edit",
name: "admin_taxonomies_edit",
replace: 'script',
partial: "spree/admin/taxonomies/taxon_tree_fix",
disabled: false
})
<script>
Spree.routes.taxonomy_taxons_path = "<%= spree.api_taxonomy_taxons_path(@taxonomy).html_safe %>";
Spree.routes.admin_taxonomy_taxons_path = "<%= spree.admin_taxonomy_taxons_path(@taxonomy).html_safe %>";
Spree.routes.jstree_theme_path = "<%= stylesheet_path("jquery.jstree/themes/apple/style.css").html_safe %>";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment