module ROM::SQL::Plugin::Associates
Make a command that automaticaly sets FK attribute on input tuples
@api private
Public Class Methods
included(klass)
click to toggle source
@api private
Calls superclass method
# File lib/rom/sql/plugin/associates.rb, line 33 def self.included(klass) klass.class_eval do extend ClassMethods include InstanceMethods defines :associations associations Hash.new option :associations, default: -> { self.class.associations } option :configured_associations, default: -> { EMPTY_ARRAY } end super end