Sha256: b350aec33112c7af983efda58b19fb8e16b9ec89a99c544a687ff6c27296bcf4

Contents?: true

Size: 376 Bytes

Versions: 10

Compression:

Stored size: 376 Bytes

Contents

module Globalize2
  module PagePartExtensions
    def self.included(base)
      base.class_eval do
        extend Globalize2::LocalizedContent
        
        localized_content_for :content
      end
    end

    def clone
      new_page_part = super
      translations.each do |t|
        new_page_part.translations << t.clone
      end
      new_page_part
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
radiant-globalize2-extension-0.3.2 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.3.1 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.3.0 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.8 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.7 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.6 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.5 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.4 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.3 lib/globalize2/page_part_extensions.rb
radiant-globalize2-extension-0.2.2 lib/globalize2/page_part_extensions.rb