Commit c4e298bc by liyijie

fix pastable syntex error

parent d104ce11
...@@ -18,7 +18,7 @@ module ActsAsPasting ...@@ -18,7 +18,7 @@ module ActsAsPasting
arel[:pasted_type].eq(klass.constantize.base_class.name). arel[:pasted_type].eq(klass.constantize.base_class.name).
and(arel[:pasted_id].in(ids)). and(arel[:pasted_id].in(ids)).
and(arel[:pasteable_id].eq(source_arel[:id])). and(arel[:pasteable_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