Sha256: c34387fef86482d6d7dc90be29c3da89bb50d0c616a29848e7fbea782199ed5b

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

Faalis.Factory = (controller, resource_name, options = {}) ->
  resource = resource_name
  if typeof(resource) != "object"
    resource = new Resource('resource')

  console.log("sadasda")
  dup_controller = class extends controller
  console.log("zxczxc")
  dup_controller.resource = resource
  console.log(dup_controller.resource)
  return dup_controller

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
faalis-1.0.0 app/assets/javascripts/faalis/dashboard/lib/controllers.js.coffee
faalis-1.0.0.alpha4 app/assets/javascripts/faalis/dashboard/lib/controllers.js.coffee
faalis-1.0.0.alpha3 app/assets/javascripts/faalis/dashboard/lib/controllers.js.coffee
faalis-1.0.0.alpha2 app/assets/javascripts/faalis/dashboard/lib/controllers.js.coffee