Sha256: 72ac607b395184ec9e5b1e271811d9c74949f323424bbb4954353edb1061276f

Contents?: true

Size: 465 Bytes

Versions: 16

Compression:

Stored size: 465 Bytes

Contents

module Enjoy
  module Models
    module Mongoid
      module PageBlockset
        extend ActiveSupport::Concern

        included do
          if defined?(RailsAdminComments)
            include RailsAdminComments::Commentable
          end

          field :name, type: String, default: ""

          embeds_many :blocks, inverse_of: :blockset, class_name: "Enjoy::PageBlock"
          accepts_nested_attributes_for :blocks
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.7.3 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.7.2 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.7.1 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.7 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.6.2 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.6.1 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.6 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.5 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.4 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.3 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.2.1 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.2 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.1.2 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.1.1 lib/enjoy/models/mongoid/page_blockset.rb
enjoy_cms-0.3.1 lib/enjoy/models/mongoid/page_blockset.rb