Sha256: e52654000dcf25de128be5c7f364d7f43393e11fc1f8f6a70c7cd93b2be172d7

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true
module SocialNetworking
  # A helper for aggregating "todo" items.
  class ActionItem
    class << self
      attr_writer :source_class_name

      def for(participant)
        return [] if @source_class_name.nil?

        @source_class_name.constantize.for(participant)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
social_networking-0.13.3 app/models/social_networking/action_item.rb
social_networking-0.13.2 app/models/social_networking/action_item.rb
social_networking-0.13.1 app/models/social_networking/action_item.rb
social_networking-0.13.0 app/models/social_networking/action_item.rb
social_networking-0.12.0 app/models/social_networking/action_item.rb