Sha256: 05b49967867bdc21c22bc86051ad00e43f5ab9ab0192c9b2606d2c556c2fc860

Contents?: true

Size: 386 Bytes

Versions: 9

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

require 'roar/decorator'
require 'roar/json'

module Pragma
  module Decorator
    # This is the base decorator that all your resource-specific decorators should extend from.
    #
    # It is already configured to render your resources as JSON.
    class Base < Roar::Decorator
      feature Roar::JSON

      defaults render_nil: true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pragma-decorator-2.3.0 lib/pragma/decorator/base.rb
pragma-decorator-2.2.6 lib/pragma/decorator/base.rb
pragma-decorator-2.2.4 lib/pragma/decorator/base.rb
pragma-decorator-2.2.3 lib/pragma/decorator/base.rb
pragma-decorator-2.2.2 lib/pragma/decorator/base.rb
pragma-decorator-2.2.1 lib/pragma/decorator/base.rb
pragma-decorator-2.2.0 lib/pragma/decorator/base.rb
pragma-decorator-2.1.1 lib/pragma/decorator/base.rb
pragma-decorator-2.1.0 lib/pragma/decorator/base.rb