Sha256: 4595e8e711b9a2914c34acb3a6529d5ad979f80e0414ce777116a37eefda989e
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
require_relative 'remapper' require_relative 'remappers' module Reflections module ActiveRecordExtension extend ActiveSupport::Concern def map_associations_to(ar_obj, options={}, &block) Remapper.new(self, ar_obj).remap(options, &block) end end ActiveRecord::Base.send(:include, ActiveRecordExtension) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reflections-1.2.0 | lib/reflections/active_record_extension.rb |