Commit d104ce11 by Ivan Lan

fix syntax error

parent c0e0c3d5
...@@ -16,7 +16,7 @@ module ActsAsPasting ...@@ -16,7 +16,7 @@ module ActsAsPasting
arel[:pasteable_type].eq(klass.constantize.base_class.name). arel[:pasteable_type].eq(klass.constantize.base_class.name).
and(arel[:pasteable_id].in(ids)). and(arel[:pasteable_id].in(ids)).
and(arel[:pasted_id].eq(source_arel[:id])). and(arel[:pasted_id].eq(source_arel[:id])).
and((arel[:type].eq(prefix)) and(arel[:type].eq(prefix))
end.reduce(:or) end.reduce(:or)
joins(arel.join(arel).on(join_condition).join_sources).distinct joins(arel.join(arel).on(join_condition).join_sources).distinct
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment