Sha256: e4320b2b7951aefa2b29e17be646d92ca364fb42115557f736c5ac03b025cd2d

Contents?: true

Size: 245 Bytes

Versions: 10

Compression:

Stored size: 245 Bytes

Contents

module MyApp
  class Json < Alephant::Publisher::Views::Json

    def whitelist
      ['item1', 'item2']
    end

    def item1
      @data[:foo]
    end

    def item2
      @data[:bar]
    end

    def baz
      @data[:baz]
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alephant-publisher-0.6.10 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.9 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.8 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.7 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.6 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.5 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.4 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.3 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.2 spec/fixtures/components/foo/models/json.rb
alephant-publisher-0.6.1 spec/fixtures/components/foo/models/json.rb