diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-03 11:48:33 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-05-03 11:48:33 +0000 |
commit | 2c28d6b5d11d69b6e83517113aaa71c246391c16 (patch) | |
tree | 5458b66112a302b4ddfa58b88e721a491208f4f4 /app/models/repository.rb | |
parent | 36ee2b24bdde652e5d6ae18a4f2ecbe997a939a6 (diff) | |
download | redmine-2c28d6b5d11d69b6e83517113aaa71c246391c16.tar.gz redmine-2c28d6b5d11d69b6e83517113aaa71c246391c16.zip |
scm: git: fix creating and updating repository
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9616 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 7efbc0c26..b0bf0d2a7 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -56,28 +56,6 @@ class Repository < ActiveRecord::Base super(attr_name, *args) end - alias :attributes_without_extra_info= :attributes= - def attributes=(new_attributes) - return if new_attributes.nil? - attributes = new_attributes.dup - attributes.stringify_keys! - - p = {} - p_extra = {} - attributes.each do |k, v| - if k =~ /^extra_/ - p_extra[k] = v - else - p[k] = v - end - end - - send :attributes_without_extra_info=, p - if p_extra.keys.any? - merge_extra_info(p_extra) - end - end - # Removes leading and trailing whitespace def url=(arg) write_attribute(:url, arg ? arg.to_s.strip : nil) |