Quiero obtener los registros de un modelo llamado CommonExercies ordenados por code de forma ascendente pero pasando hasta el final dos de ellos, en este caso none y other, no se que otro método utilizar aparte de order, alguna idea de como lo puedo hacer?
irb(main):001:0> CommonExercise.order(code: :asc) CommonExercise Load (0.8ms) SELECT "common_exercise".* FROM "common_exercise" ORDER BY "common_exercise"."code" ASC LIMIT $1 [["LIMIT", 11]]
=> #<ActiveRecord::Relation [#<CommonExercise id: 1, code: "cycling", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">,
#<CommonExercise id: 2, code: "gym", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">, #<CommonExercise id: 3, code: "kickbox", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">, #<CommonExercise id: 7, code: "none", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">,
#<CommonExercise id: 8, code: "other", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">, #<CommonExercise id: 4, code: "run", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">, #<CommonExercise id: 6, code: "swim", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">,
#<CommonExercise id: 5, code: "yoga", created_at: "2019-04-03 17:43:31", updated_at: "2019-04-03 17:43:31">]> irb(main):002:0>