Sha256: 6bba5dab0398eb75896e24abdd0773ea3538b3359d94dbf8cd03852e36c4ef0b

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

class SimplePresenter < Presenter
  expose :name, :email
end

class ExposeWithOtherPresenter < Presenter
  subjects :user, :comment

  expose :name, with: :user
  expose :user, presenter: SimplePresenter, with: :comment, as: :creator, prefix: false
end

class ExposeWithOneSubjectPresenter < Presenter
  expose :id
  expose :user, presenter: SimplePresenter
  expose :comment, presenter: SimplePresenter
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upholsterer-1.1.0 spec/support/expose_with_other_presenter.rb