       object_merge data,
         model: name.capitalize()
 
-      relation_params = relationship_fields name, data.model, self.api(), options
+      relation_params = Helpers.relationship_fields name, data.model, self.api(), options
 
       # Get
       #

      else
        ObservableArray self, name + 's', []
        #LazyObservableArray self, name + 's', lazy_get_fn, relation_params
      self[name + '_get'] = get_fn.apply self, relation_params

      # Create
      #
      self[name + '_add'] = create_fn.apply self, relation_params

      # Destroy
      #
      self[name + '_destroy'] = destroy_fn.apply self, relation_params

if typeof require == 'function'
  object_merge = require './utils'
  Helpers      = require '../helpers'

  Observables     = require './observable'
  Observable      = Observables.Observable
  ObservableArray = Observables.ObservableArray

Relatable = (self, options) ->
  # Set relations
  # API wise has_one and belongs_to are the same, so we merge them
