Sha256: 7c957010c39d81fcf859afdee7ddcacf1f8c1ea6f3920599a9a40c75a3cfc7ad

Contents?: true

Size: 423 Bytes

Versions: 6

Compression:

Stored size: 423 Bytes

Contents

# encoding: UTF-8
module Amalgam
  module Models
    module Groupable
      extend ActiveSupport::Concern

      included do

        attr_accessible :group_ids

        has_many :base_groups, :as => :groupable, :dependent => :destroy, :include => :group, :class_name => "::Amalgam::Models::BaseGroup"
        has_many :groups, :through => :base_groups, :class_name => "::Amalgam::Models::Group"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
amalgam-2.1.4.1 lib/amalgam/models/groupable.rb
amalgam-2.1.4 lib/amalgam/models/groupable.rb
amalgam-2.1.3.1 lib/amalgam/models/groupable.rb
amalgam-2.1.3 lib/amalgam/models/groupable.rb
amalgam-2.1.2 lib/amalgam/models/groupable.rb
amalgam-2.1.1 lib/amalgam/models/groupable.rb