Commit 70949f80 by Ivan Lan

Merge branch 'master' of git.tallty.com:open-source/acts_as_pasting

parents ed5481d8 c4e298bc
...@@ -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