Permalink
Browse files

Refactored `to_statements` in Scope::Query

  • Loading branch information...
serebryakov committed May 27, 2010
1 parent cbe9562 commit a6198b44308f796b9029d9af77f7a1903b4e6337
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/lib/scope/query.rb
View
@@ -141,12 +141,9 @@ def to_statements
else
RDF::URI.new(self[:id].to_s)
end
- [{ :subject => target,
- :predicate => RDF.type,
- :object => @cls.type
- }] + to_a(:id).map do |condition|
+ to_a(:id).map do |condition|
condition.to_statements(target)
- end.flatten.compact
+ end.flatten.compact + @cls.to_statements(:short => true)
end
##

0 comments on commit a6198b4

Please sign in to comment.