Sha256: ac14153eaf260cf86f8abdcea400dbcdd3a3dfad9e1c80fcd8df50498ab0481f

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

require 'active_support/concern'

module Cornucopia
  module SitePrism
    module SectionExtensions
      extend ActiveSupport::Concern

      included do |base|
        base.class_exec do
          alias :__cornucopia_orig_initialize :initialize

          def initialize(*args)
            __cornucopia_orig_initialize(*args)

            self.owner_node = args[0].owner_node
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cornucopia-0.1.52 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.51 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.50 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.49 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.48 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.47 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.46 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.45 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.44 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.43 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.42 lib/cornucopia/site_prism/section_extensions.rb
cornucopia-0.1.41 lib/cornucopia/site_prism/section_extensions.rb