Skip to content

Commit

Permalink
Fix for error: undefined method tables' for class ActiveRecord::Con…
Browse files Browse the repository at this point in the history
  • Loading branch information
nitay authored and laripk committed Jun 2, 2011
1 parent 3bf63c9 commit fda9171
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@ module RailsSqlViews
module ConnectionAdapters
module PostgreSQLAdapter
def self.included(base)
base.alias_method_chain :tables, :views_included
base.alias_method_chain :tables, :views_included unless method_defined?(:tables_with_views_included)
end
# Returns true as this adapter supports views.
def supports_views?
Expand Down

0 comments on commit fda9171

Please sign in to comment.