Welcome to mirror list, hosted at ThFree Co, Russian Federation.

aspect_membership_presenter.rb « presenters « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 28a96e38f203130c4aef55f03b0b62f6e26acd2b (plain)
1
2
3
4
5
6
7
8
9
10
11
class AspectMembershipPresenter < BasePresenter
  def initialize(membership)
    @membership = membership
  end

  def base_hash
    { id: @membership.id,
      aspect: AspectPresenter.new(@membership.aspect).as_json,
    }
  end
end