]> git.openstreetmap.org Git - rails.git/commitdiff
Update to CPK 7.0.11 and drop monkey patch
authorTom Hughes <tom@compton.nu>
Fri, 10 Oct 2014 11:31:42 +0000 (12:31 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 10 Oct 2014 11:32:25 +0000 (12:32 +0100)
Gemfile
Gemfile.lock
config/initializers/composite_primary_keys.rb [deleted file]

diff --git a/Gemfile b/Gemfile
index 76f1d32744518938219ab89a54b1fdba79a6f8cb..fd8e46b9facaac318003176b766082ba5d739bd8 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -44,7 +44,7 @@ gem 'rinku', '>= 1.2.2', :require => 'rails_rinku'
 gem 'oauth-plugin', '>= 0.5.1'
 gem 'open_id_authentication', '>= 1.1.0'
 gem 'validates_email_format_of', '>= 1.5.1'
-gem 'composite_primary_keys', '~> 7.0.10'
+gem 'composite_primary_keys', '~> 7.0.11'
 gem 'http_accept_language', '~> 2.0.0'
 gem 'paperclip', '~> 4.0'
 gem 'deadlock_retry', '>= 1.2.0'
index 9861294bd689f58ce95897a6740997ffeef6c52f..48d6013bf938ca071a3f96c3bd8adf7c20b3b8b6 100644 (file)
@@ -31,7 +31,7 @@ GEM
       thread_safe (~> 0.1)
       tzinfo (~> 1.1)
     arel (5.0.1.20140414130214)
-    autoprefixer-rails (3.1.0.20140911)
+    autoprefixer-rails (3.1.1.20141001)
       execjs
     bigdecimal (1.1.0)
     builder (3.2.2)
@@ -54,8 +54,8 @@ GEM
       execjs
     coffee-script-source (1.8.0)
     colorize (0.7.3)
-    composite_primary_keys (7.0.10)
-      activerecord (~> 4.1.4)
+    composite_primary_keys (7.0.11)
+      activerecord (= 4.1.6)
     crass (0.2.1)
     dalli (2.7.2)
     deadlock_retry (1.2.0)
@@ -90,7 +90,7 @@ GEM
     libxml-ruby (2.7.0)
     mail (2.6.1)
       mime-types (>= 1.16, < 3)
-    mime-types (2.3)
+    mime-types (2.4.1)
     mini_portile (0.6.0)
     minitest (5.4.2)
     multi_json (1.10.1)
@@ -190,7 +190,7 @@ GEM
     validates_email_format_of (1.6.1)
       i18n
     vendorer (0.1.16)
-    websocket-driver (0.3.4)
+    websocket-driver (0.3.5)
     xpath (2.0.0)
       nokogiri (~> 1.3)
 
@@ -203,7 +203,7 @@ DEPENDENCIES
   autoprefixer-rails
   bigdecimal (~> 1.1.0)
   coffee-rails (~> 4.0.0)
-  composite_primary_keys (~> 7.0.10)
+  composite_primary_keys (~> 7.0.11)
   dalli
   deadlock_retry (>= 1.2.0)
   dynamic_form
diff --git a/config/initializers/composite_primary_keys.rb b/config/initializers/composite_primary_keys.rb
deleted file mode 100644 (file)
index 37200c5..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-# Monkey patch id_was into CPK pending upstream integration
-# https://github.com/composite-primary-keys/composite_primary_keys/pull/236
-module ActiveRecord
-  class Base
-    module CompositeInstanceMethods
-      def id_was
-        attribute_was("id")
-      end
-    end
-  end
-end