summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/custom_field.rb2
-rw-r--r--test/object_helpers.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/custom_field.rb b/app/models/custom_field.rb
index 8936a6d66..400ee56b5 100644
--- a/app/models/custom_field.rb
+++ b/app/models/custom_field.rb
@@ -249,7 +249,7 @@ class CustomField < ActiveRecord::Base
# to move in project_custom_field
def self.for_all
- where(:is_for_all => true).order('position').to_a
+ where(:is_for_all => true).order(:position).to_a
end
def type_name
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index 3928dd5cc..f827cd150 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -65,7 +65,7 @@ module ObjectHelpers
@generated_tracker_name.succ!
tracker = Tracker.new(attributes)
tracker.name = @generated_tracker_name.dup if tracker.name.blank?
- tracker.default_status ||= IssueStatus.order('position').first || IssueStatus.generate!
+ tracker.default_status ||= IssueStatus.order(:position).first || IssueStatus.generate!
yield tracker if block_given?
tracker
end