Sha256: f4abaff6027ef2fe11303f5345916bf1dba12a5ed9e23dbf1839e6f88905e906

Contents?: true

Size: 346 Bytes

Versions: 6

Compression:

Stored size: 346 Bytes

Contents

module Amalgam
  module Models
    class BaseGroup < ::ActiveRecord::Base
      set_table_name "base_groups"

      attr_accessible :group_id,:groupable_type,:groupable_id

      belongs_to :group, :class_name => '::Amalgam::Models::Group'
      belongs_to :groupable, :polymorphic => true

      validates_presence_of :group_id
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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