Sha256: c4ea0f5939190de0efb6cb026067bde95f1cdc418c986002b14acfa57278e8f8

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

# frozen_string_literal: true

module ActiveRecordHelpers
  extend ActiveSupport::Concern

  class_methods do
    def mobiliable
      has_many :apps, as: :mobiliable, class_name: 'Distribuo::App'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
distribuo-0.1.16 lib/distribuo/active_record_helpers.rb
distribuo-0.1.8 lib/distribuo/active_record_helpers.rb