From 69bb1ba609d53435f05a3888d5cb62609f74d0fd Mon Sep 17 00:00:00 2001 From: Redmine Date: Sat, 26 Dec 2009 20:24:57 +0100 Subject: [PATCH] Fix Ruby 1.9 problem with splat implementation --- app/models/issue.rb | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index b9e0461..d583b37 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -157,9 +157,10 @@ class Issue < ActiveRecord::Base if new_tracker_id self.tracker_id = new_tracker_id end - self.attributes_without_tracker_first = new_attributes, *args + self.attributes_without_tracker_first(new_attributes, *args) end alias_method_chain :attributes=, :tracker_first + alias attributes_without_tracker_first attributes_without_tracker_first= def estimated_hours=(h) write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h) -- 1.5.6.5