From 38b5b8a127bf0e3912c69f6db3c073985aa7cf5d Mon Sep 17 00:00:00 2001 From: Brendon Muir Date: Sat, 27 Feb 2016 16:04:59 +1300 Subject: [PATCH] Use a symbol as a string to define callback This is required for Rails 5 support. --- lib/acts_as_list/active_record/acts/list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/acts_as_list/active_record/acts/list.rb b/lib/acts_as_list/active_record/acts/list.rb index 9fd49b44..1bd7bf42 100644 --- a/lib/acts_as_list/active_record/acts/list.rb +++ b/lib/acts_as_list/active_record/acts/list.rb @@ -123,7 +123,7 @@ def #{configuration[:column]}=(position) EOV if configuration[:add_new_at].present? - self.send(:before_create, "add_to_list_#{configuration[:add_new_at]}") + self.send :before_create, :"add_to_list_#{configuration[:add_new_at]}" end end