Sha256: 099da4def4851b8dc98f811b29e60481377bea32fe7467ae5ca7956c3e109b17

Contents?: true

Size: 499 Bytes

Versions: 46

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  module Drops
    class UnifiedPayloadDrop < Drop
      mutable true

      attr_accessor :page, :layout, :content, :paginator
      alias_method :resource, :page

      def bridgetown
        BridgetownDrop.global
      end

      def site
        @site_drop ||= SiteDrop.new(@obj)
      end

      def collections
        @obj.collections
      end

      private

      def fallback_data
        @fallback_data ||= {}
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
bridgetown-core-0.21.1 lib/bridgetown-core/drops/unified_payload_drop.rb
bridgetown-core-0.21.0 lib/bridgetown-core/drops/unified_payload_drop.rb
bridgetown-core-0.21.0.beta4 lib/bridgetown-core/drops/unified_payload_drop.rb
bridgetown-core-0.21.0.beta3 lib/bridgetown-core/drops/unified_payload_drop.rb
bridgetown-core-0.21.0.beta2 lib/bridgetown-core/drops/unified_payload_drop.rb
bridgetown-core-0.21.0.beta1 lib/bridgetown-core/drops/unified_payload_drop.rb