Skip to content

Commit

Permalink
fix for undefined method tables_with_views_included
Browse files Browse the repository at this point in the history
The original tables method includes views already.  The method
tables_with_views_included was only definded in the PostgreSQL adapter
  • Loading branch information
robertwahler authored and aeden committed Aug 25, 2010
1 parent 2e24536 commit a581a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rails_sql_views/connection_adapters/abstract_adapter.rb
Expand Up @@ -11,10 +11,11 @@ def supports_views?
end

def disable_referential_integrity_with_views_excluded(&block)
self.class.send(:alias_method, :original_tables_method, :tables)
self.class.send(:alias_method, :tables, :base_tables)
disable_referential_integrity_without_views_excluded(&block)
ensure
self.class.send(:alias_method, :tables, :tables_with_views_included)
self.class.send(:alias_method, :tables, :original_tables_method)
end

def supports_view_columns_definition?
Expand Down

0 comments on commit a581a1d

Please sign in to comment.