Sha256: 47f48ffdd18d736548ebdb85a8b6e0ebb217d6dbec1a1c96d4eee02cde1e00d6

Contents?: true

Size: 169 Bytes

Versions: 1

Compression:

Stored size: 169 Bytes

Contents

class BrainstormingSerializer < ActiveModel::Serializer
  attributes :id, :user_id, :user_slug, :name, :slug, :text

  def user_slug
    object.user.try(:slug)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voluntary_brainstorming-0.0.2 app/serializers/brainstorming_serializer.rb