We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59baa08 commit eb703a0Copy full SHA for eb703a0
app/models/text_block.rb
@@ -8,7 +8,7 @@ class TextBlock < ActiveRecord::Base
8
validates_numericality_of :position, :only_integer => true
9
before_create :set_position
10
11
- scope :sorted, ->{ order('project_id IS NOT NULL, project_id ASC, position ASC') }
+ scope :sorted, ->{ order(Arel.sql('project_id IS NOT NULL, project_id ASC, position ASC')) }
12
13
private
14
0 commit comments