Skip to content

Commit

Permalink
Fix postgres_ext for rails 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
eidge committed Dec 7, 2014
1 parent 681224c commit 4d68ca0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/postgres_ext/active_record/cte_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ def table_name
name
end

def relation_delegate_class(*args)
@model.relation_delegate_class(*args)
end

delegate :column_names, :columns_hash, :model_name, :primary_key, :attribute_alias?,
:aggregate_reflections, :instantiate, :type_for_attribute, to: :@model

private

def reflections
Expand Down

0 comments on commit 4d68ca0

Please sign in to comment.