From dae66c21d5a598db3b8c1458005d51d917127297 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 10 Oct 2014 12:31:42 +0100 Subject: [PATCH] Update to CPK 7.0.11 and drop monkey patch --- Gemfile | 2 +- Gemfile.lock | 12 ++++++------ config/initializers/composite_primary_keys.rb | 11 ----------- 3 files changed, 7 insertions(+), 18 deletions(-) delete mode 100644 config/initializers/composite_primary_keys.rb diff --git a/Gemfile b/Gemfile index 76f1d3274..fd8e46b9f 100644 --- 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' diff --git a/Gemfile.lock b/Gemfile.lock index 9861294bd..48d6013bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 index 37200c51b..000000000 --- a/config/initializers/composite_primary_keys.rb +++ /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 -- 2.43.2