       JSON.stringify(o)
     else
       JSON.stringify(z)
-
-  #
-  # Convert model into array of element instances
-  # @return [String]
-  #
-  # @example
-  #   var m = new MyModel({"id": 10, "title": "my title", "description": "text..."});
-  #   m.to_html() // => "<b class = 'my-model-id'>10</b><span class = 'my-model-title'>my title</span><div>text...</div>"
-  #
-  #   person.to_html() // =>
-  #   // "<b class='person-id'>1</b>
-  #   //  <span class='person-name'>Abc</span>
-  #   //    <p class = 'group'>
-  #   //      <span>group-0</span>
-  #   //      <div>1</div>
-  #   //      <span>group-1</span>
-  #   //      <div>1</div>
-  #   //    </p>
-  #
-  to_html: () ->
-    to = @constructor.to || {}
-
-    result = for key in @attributes
-      value = @get(key)
-      obj   = to[key]    || {}
-      tag   = obj["tag"] || "div"
-      attr  = for k, v of obj when k isnt "tag" then "#{k} = '#{v}'"
-      attr = if attr.length == 0 then "" else " #{attr.join(' ')}"
-
-      value = if @has_many().indexOf(key) > -1
-        for v in value then v.to_html()
-      else if @has_one().indexOf(key) > -1
-        value.to_html()
-      else
-        value
-
-      "<#{tag}#{attr}>#{value}</#{tag}>"
-
-    result.join("")
 
   # Create a new model instance from json structure.
   # @param json [JSON] - json object

#
#   class MyModel extends Sirius.BaseModel
#     @attrs: ["id", {title: "default title"}, "description"]
#     @to:
#       id          : tag: "b", class: 'my-model-id'
#       title       : tag: "span", class: "my-model-title"
#
#   class Person extends BaseModel
#     @attrs: ["id", "name"]
#
#     @has_many: [Group]
#
#     @form_name: "person-model"
#
#     @guid_for: id
#

          json[attr]
        m.set(attr, value || m.get(attr))
    m

  # usage for comparing models
  # When equal return true, otherwise return false
