Sha256: d16492b8b15211d4d86758f06cfa63dbc59f4e4ba6a27e949aca2c04ca3b2a20

Contents?: true

Size: 242 Bytes

Versions: 1

Compression:

Stored size: 242 Bytes

Contents

module Transit
  module Model
    module Owners
      
      extend ActiveSupport::Concern
      
      included do
        belongs_to :user
        User.send(:has_many, :"#{self.name.pluralize.underscore}")
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transit-0.0.2 lib/transit/model/owners.rb