# HG changeset patch # User olivier # Date 1428398852 -7200 # Tue Apr 07 11:27:32 2015 +0200 # Node ID 03ed4e938c1a39aea5cfebac5a84219e437f9317 # Parent e4c27a5a3289edd7ba5f67c469eec8271a52012a Rails 4.2 compatibility diff -r e4c27a5a3289 -r 03ed4e938c1a plugins/localizable/app/views/settings/_localizable.html.erb --- a/plugins/localizable/app/views/settings/_localizable.html.erb Tue Apr 07 11:27:24 2015 +0200 +++ b/plugins/localizable/app/views/settings/_localizable.html.erb Tue Apr 07 11:27:32 2015 +0200 @@ -47,11 +47,11 @@

-<%- elements = [{:name => "role", :objects => Role.find(:all), :label => :label_role_plural}, - {:name => "tracker", :objects => Tracker.find(:all), :label => :label_tracker_plural}, - {:name => "issue_status", :objects => IssueStatus.find(:all), :label => :label_issue_status_plural}, - {:name => "custom_field", :objects => CustomField.find(:all), :label => :label_custom_field_plural}, - {:name => "enumeration", :objects => Enumeration.find(:all, :conditions => "project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] -%> +<%- elements = [{:name => "role", :objects => Role.all, :label => :label_role_plural}, + {:name => "tracker", :objects => Tracker.all, :label => :label_tracker_plural}, + {:name => "issue_status", :objects => IssueStatus.all, :label => :label_issue_status_plural}, + {:name => "custom_field", :objects => CustomField.all, :label => :label_custom_field_plural}, + {:name => "enumeration", :objects => Enumeration.where("project_id IS NULL").sort{|a, b| a.type.downcase <=> b.type.downcase}, :label => :label_enumerations}] -%> <%- type_labels = {"Issue" => :label_issue_plural, "TimeEntry" => :label_time_entry_plural, "Project" => :label_project_plural,