Commit 280fa0c6 by Ivan Lan

Change pastable arg name

parent 70949f80
......@@ -33,7 +33,7 @@ module ActsAsPasting
module ClassMethods
def acts_as_pastable associations, prefix: '', **options
pasting_name = prefix.blank? ? :pastings : [prefix, 'pastings'].join('_').to_sym
pasting_name = prefix.blank? ? :pastable_pastings : [prefix, 'pastable_pastings'].join('_').to_sym
has_many pasting_name, as: :pasteable, class_name: 'ActsAsPasting::Pasting'
has_many associations, through: pasting_name, source: :pasted, **options
end
......
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