diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-06-24 12:02:00 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-06-24 12:02:00 -0300 |
commit | 4086ecea24446904bac4c69812f219ce7cbfbbba (patch) | |
tree | 11b11d164f59a68bd90037899f52cfbde7501efd /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | d9f199e1238a723432a2005c405fc5ae22dea24b (diff) | |
download | rails-4086ecea24446904bac4c69812f219ce7cbfbbba.tar.gz rails-4086ecea24446904bac4c69812f219ce7cbfbbba.tar.bz2 rails-4086ecea24446904bac4c69812f219ce7cbfbbba.zip |
Remove block definition from method, is not needed since yield is used inside.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index e84242601b..6fa4c50d6a 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -372,7 +372,7 @@ module ActiveRecord return false end - def disable_referential_integrity(&block) #:nodoc: + def disable_referential_integrity #:nodoc: if supports_disable_referential_integrity?() then execute(tables.collect { |name| "ALTER TABLE #{quote_table_name(name)} DISABLE TRIGGER ALL" }.join(";")) end |