lib/classy-inheritance.rb in classy-inheritance-0.4.2 vs lib/classy-inheritance.rb in classy-inheritance-0.4.3
- old
+ new
@@ -63,10 +63,10 @@
private
def define_relationship(model_sym, options)
opts = options.dup
- opts.delete(:attrs)
+ [:attrs, :prefix].each{|key| opts.delete(key)}
if opts[:as]
as_opt = opts.delete(:as)
opts = polymorphic_constraints(as_opt).merge(opts)
has_one model_sym, opts
else