Sha256: 165f2566de4a550d0e63fbaee1e4d1b8925ffdb3a0d29c877e92b4c4bbd7d083

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

module Encore
  module Serializer
    module MainResourceLinksManager
      module ReflectionHasMany
        extend ActiveSupport::Concern

        def self.add(item, reflection)
          item.send("#{reflection.name.to_s.singularize}_ids").map(&:to_s)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
encore-0.2.3 lib/encore/serializer/main_resource_links_manager/reflection_has_many.rb
encore-0.2.2 lib/encore/serializer/main_resource_links_manager/reflection_has_many.rb
encore-0.2.1 lib/encore/serializer/main_resource_links_manager/reflection_has_many.rb
encore-0.2 lib/encore/serializer/main_resource_links_manager/reflection_has_many.rb
encore-0.1 lib/encore/serializer/main_resource_links_manager/reflection_has_many.rb