Sha256: 1ff20c6b3aa38f2035e3f7c2cd879df5b98fd4a8951ca0eb6182231ad6348db7

Contents?: true

Size: 291 Bytes

Versions: 1

Compression:

Stored size: 291 Bytes

Contents

module Bento
  module Models
    module Modules
      module UserAssociation
        def self.included(base)
          base.class_eval do
            has_many :bento_memberships
            has_many :users, :through => :bento_memberships
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bento-0.0.3 lib/bento/models/modules/user_association.rb