Sha256: 31f34d1d285b61ce96ed48c8cfad36d6a289760cc5d75bfdafd7a07d3a43e574

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

module MyApp
  class Json < Alephant::Renderer::Views::Json
    def whitelist
      %w(item1 item2)
    end

    def item1
      @data[:foo]
    end

    def item2
      @data[:bar]
    end

    def baz
      @data[:baz]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alephant-renderer-3.2.0 spec/fixtures/components/foo-renderer/models/json.rb
alephant-renderer-3.1.0 spec/fixtures/components/foo-renderer/models/json.rb