Sha256: 71f8091d756b3518d1126edf70672c91e36bec62cc563c191478af5e3051efac

Contents?: true

Size: 251 Bytes

Versions: 7

Compression:

Stored size: 251 Bytes

Contents

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

class Roar::Decorator < Representable::Decorator
  module HypermediaConsumer
    def links=(arr)
      links = super
      represented.instance_variable_set :@links, links
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
roar-1.0.4 lib/roar/decorator.rb
roar-1.0.3 lib/roar/decorator.rb
roar-1.0.2 lib/roar/decorator.rb
roar-1.0.1 lib/roar/decorator.rb
roar-1.0.0 lib/roar/decorator.rb
roar-1.0.0.beta2 lib/roar/decorator.rb
roar-1.0.0.beta1 lib/roar/decorator.rb