Sha256: 6b3d5a3f57a01a08519ba8fa0bea430d620c006f655113d3101c154340474610

Contents?: true

Size: 465 Bytes

Versions: 11

Compression:

Stored size: 465 Bytes

Contents

require 'roar/representer'
require 'representable/decorator'

class Roar::Decorator < Representable::Decorator
  extend Roar::Representer::InheritableArray

  module HypermediaConsumer
    def links_array=(*args)
      super # TODO: this currently sets #links which is not obvious.
      represented.links = links
    end

    # TODO: what is the deal with #links_array and #links?
    def links=(*args)
      super
      represented.links = links
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
roar-0.12.9 lib/roar/decorator.rb
roar-0.12.8 lib/roar/decorator.rb
roar-0.12.7 lib/roar/decorator.rb
roar-0.12.6 lib/roar/decorator.rb
roar-0.12.5 lib/roar/decorator.rb
roar-0.12.4 lib/roar/decorator.rb
roar-0.12.3 lib/roar/decorator.rb
roar-0.12.2 lib/roar/decorator.rb
roar-0.12.1 lib/roar/decorator.rb
roar-0.12.0 lib/roar/decorator.rb
roar-0.11.19 lib/roar/decorator.rb