     InstanceMethods: @with Tails.Mixins.Debug,
       included : () =>
         @after initialize: () ->
-          console.log JSON.stringify @name
+          console.log @toJSON @name
           @after store: () ->
             @log "Stored instances", @constructor.pluck("id")
 

    storage: ( ) ->
        return localStorage

    indexRoot: ( ) ->
      return inflection.transform(@name, ['underscore', 'pluralize'])


      indexRoot = @indexRoot?() ? @indexRoot
      key = "#{indexRoot}/#{instance.id}"
      if data?
        key += "/"+Tails.Utils.Hash @toJSON data
        json = @toJSON
          "instance" : instance
          "data" : data
      else
        json = @toJSON instance
      @storage().setItem key, json
      return key

