Sha256: 2c8aa055cead3f392d3cc224a08ee783ea7b177851f6167f47409d948774b2ae

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

module PolymorphicConstraints
  module ConnectionAdapters
    module SchemaStatements
      def self.included(base)
        base::AbstractAdapter.class_eval do
          include PolymorphicConstraints::ConnectionAdapters::AbstractAdapter
        end
      end
    end

    module AbstractAdapter
      def supports_polymorphic_constraints?
        false
      end

      def add_polymorphic_constraints(relation, associated_model, options = {})
      end

      def remove_polymorphic_constraints(relation)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polymorphic_constraints-1.0.0 lib/polymorphic_constraints/connection_adapters/abstract/schema_statements.rb