lib/para/orderable.rb in para-0.7.3 vs lib/para/orderable.rb in para-0.7.4.p1

- old
+ new

@@ -13,11 +13,11 @@ private def orderable_assign_position return if attribute_present?(:position) - last_resource = orderabe_scope + last_resource = orderable_scope .where.not(position: nil) .select(:position) .first self.position = if last_resource && last_resource.position @@ -35,10 +35,10 @@ end end def orderable_scope if (parent = _orderable_options[:parent]) && (as = _orderable_options[:as]) - try(parent).try(as).try(:ordered) || [] + try(parent).try(as).try(:ordered) || self.class.none else self.class.unscoped.ordered end end end