app/controllers/dry_crud/nestable.rb in dry_crud-2.1.1 vs app/controllers/dry_crud/nestable.rb in dry_crud-2.1.2
- old
+ new
@@ -43,10 +43,10 @@
end
# Loads the parent entry for the given ActiveRecord class.
# By default, performs a find with the class_name_id param.
def parent_entry(clazz)
- set_model_ivar(clazz.find(params["#{clazz.name.underscore}_id"]))
+ model_ivar_set(clazz.find(params["#{clazz.name.underscore}_id"]))
end
# An array of objects used in url_for and related functions.
def path_args_with_nesting(last)
parents + [last]