Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Don't double-alias disable_referential_integrity. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/rails_sql_views/connection_adapters/abstract_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module RailsSqlViews
module ConnectionAdapters
module AbstractAdapter
def self.included(base)
base.alias_method_chain :disable_referential_integrity, :views_excluded
base.alias_method_chain :disable_referential_integrity, :views_excluded \
unless base.method_defined? :disable_referential_integrity_with_views_excluded
end

# Subclasses should override and return true if they support views.
Expand Down