lib/graphql/relay/relation_connection.rb in graphql-relay-0.2.0 vs lib/graphql/relay/relation_connection.rb in graphql-relay-0.3.0
- old
+ new
@@ -69,7 +69,10 @@
def create_order_condition(column, value, direction_marker)
name = ActiveRecord::Base.connection.quote_column_name(column)
["#{name} #{direction_marker} ?", value]
end
end
+ if defined?(ActiveRecord)
+ BaseConnection.register_connection_implementation(ActiveRecord::Relation, RelationConnection)
+ end
end
end