Sha256: 6639e0de7ab8ada6f94752cb380d648abe5b9ce9eb4394cd6348cd596a532445

Contents?: true

Size: 635 Bytes

Versions: 4

Compression:

Stored size: 635 Bytes

Contents

$cornucopia_element_extension_installed = false unless defined? $cornucopia_element_extension_installed

if Object.const_defined?("SitePrism") &&
    ::SitePrism.const_defined?("Page") &&
    !$cornucopia_element_extension_installed
  module ::SitePrism
    class Page
      include Cornucopia::SitePrism::ElementExtensions
    end
  end
end

if Object.const_defined?("SitePrism") &&
    ::SitePrism.const_defined?("Section") &&
    !$cornucopia_element_extension_installed
  $cornucopia_element_extension_installed = true

  module ::SitePrism
    class Section
      include Cornucopia::SitePrism::ElementExtensions
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cornucopia-0.1.15 lib/cornucopia/site_prism/install_element_extensions.rb
cornucopia-0.1.14 lib/cornucopia/site_prism/install_element_extensions.rb
cornucopia-0.1.13 lib/cornucopia/site_prism/install_element_extensions.rb
cornucopia-0.1.12 lib/cornucopia/site_prism/install_element_extensions.rb