Sha256: bb8bea1768a1ab65ba90fb4c4c99dc9c65a7d76bee89663e2b77e39b0f94633f
Contents?: true
Size: 560 Bytes
Versions: 26
Compression:
Stored size: 560 Bytes
Contents
require 'ruby2js/filter/angularrb' module Ruby2JS module Filter module AngularResource include SEXP # input: # $resource.new(args) # # output: # $resource(args) def on_send(node) return super unless @ngApp and node.children[1] == :new return super unless node.children[0] == s(:gvar, :$resource) node = super(node) @ngAppUses << :ngResource node.updated nil, [nil, :$resource, *node.children[2..-1]] end end DEFAULTS.push AngularResource end end
Version data entries
26 entries across 26 versions & 1 rubygems