diff --git a/README.md b/README.md index 48b50499..44fc1406 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ After that you can use `acts_as_list` method in the model: ```ruby class TodoList < ActiveRecord::Base - has_many :todo_items, -> { order("position ASC") } + has_many :todo_items, -> { order(position: :asc) } end class TodoItem < ActiveRecord::Base