Project

General

Profile

Feature #3972 » localizable-Rails-4.2.patch

Rails 4.2 compatibility changes - Olivier Houdas, 2015-05-09 10:02

View differences:

plugins/localizable/app/views/settings/_localizable.html.erb Tue Apr 07 11:27:24 2015 +0200 → plugins/localizable/app/views/settings/_localizable.html.erb Tue Apr 07 11:27:32 2015 +0200
47 47
  </p>
48 48
</fieldset>
49 49

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