Sha256: 258ae917988e20b5b1014331a1071211affdf6e173c3b04d43543cff8a0192c0

Contents?: true

Size: 284 Bytes

Versions: 10

Compression:

Stored size: 284 Bytes

Contents

# frozen_string_literal: true

class MentioneesBlueprint < Blueprinter::Base
  identifier :id

  fields :email

  field :type do |mentionee, _|
    "#{mentionee.class.to_s}"
  end

  field :name do |mentionee, _|
    "#{Talkie.autocomplete_mention_display.call(mentionee)}"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
talkie-0.5.1 app/blueprints/mentionees_blueprint.rb
talkie-0.5.0 app/blueprints/mentionees_blueprint.rb
talkie-0.4.1 app/blueprints/mentionees_blueprint.rb
talkie-0.4.0 app/blueprints/mentionees_blueprint.rb
talkie-0.3.5 app/blueprints/mentionees_blueprint.rb
talkie-0.3.4 app/blueprints/mentionees_blueprint.rb
talkie-0.3.3 app/blueprints/mentionees_blueprint.rb
talkie-0.3.2 app/blueprints/mentionees_blueprint.rb
talkie-0.3.1 app/blueprints/mentionees_blueprint.rb
talkie-0.3.0 app/blueprints/mentionees_blueprint.rb