Sha256: cd7752b49b7c6c020ba28318053fe83e10d3ba6e43804274ceaf5037fc1fdaf4

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Model::Core
  module ContentGroups
    extend Spontaneous::Concern

    module ClassMethods
      attr_reader :group_memberships

      def group(*group_names)
        @group_memberships = group_names
        model.schema.add_group_member(self, group_names)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta10 lib/spontaneous/model/core/content_groups.rb
spontaneous-0.2.0.beta9 lib/spontaneous/model/core/content_groups.rb
spontaneous-0.2.0.beta8 lib/spontaneous/model/core/content_groups.rb
spontaneous-0.2.0.beta7 lib/spontaneous/model/core/content_groups.rb
spontaneous-0.2.0.beta6 lib/spontaneous/model/core/content_groups.rb
spontaneous-0.2.0.beta5 lib/spontaneous/model/core/content_groups.rb