Sha256: 5bcec16ddc8377776e5afe958722beed36c3fcb1c7e67bbffeb7662b2a67143d

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

class SimplePresenter < Presenter
  expose :name, :email
end

class ExposeWithOtherPresenter < Presenter
  do_not_use_prefixes!

  subjects :user, :comment

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
upholsterer-1.4.1 spec/support/expose_with_other_presenter.rb
upholsterer-1.4.0 spec/support/expose_with_other_presenter.rb
upholsterer-1.3.0 spec/support/expose_with_other_presenter.rb
upholsterer-1.2.0 spec/support/expose_with_other_presenter.rb