Skip to content

Commit

Permalink
diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
laripk committed Jun 9, 2011
1 parent 7f17f1a commit fe04aa2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rails_sql_views/connection_adapters/postgresql_adapter.rb
Expand Up @@ -3,15 +3,15 @@ module ConnectionAdapters
module PostgreSQLAdapter
def self.included(base)
puts "\nmy postgres self.included", self.to_s
alias_method_chain :tables, :views_included unless method_defined?(:tables_with_views_included)
puts method_defined?(:tables_without_views_included)
base.alias_method_chain :tables, :views_incl unless method_defined?(:tables_with_views_incl)
puts method_defined?(:tables_without_views_incl)
end
# Returns true as this adapter supports views.
def supports_views?
true
end

def tables_with_views_included(name = nil)
def tables_with_views_incl(name = nil)
puts "\nmy postgres tables"
q = <<-SQL
SELECT table_name, table_type
Expand Down

0 comments on commit fe04aa2

Please sign in to comment.