en_masse 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17642196e77c1543ec242b555d8f3cbe9d750a38
4
- data.tar.gz: 749ec9d60222ce0ced3148684fe9dd2aea9df9b2
3
+ metadata.gz: d6aacf9d6b65da55afc86a7ddbee21ec434883d5
4
+ data.tar.gz: ee5ddb583d9f6f960f93309c77ade2ec1aa10d14
5
5
  SHA512:
6
- metadata.gz: 5c694120f12e33cf0172bfc6b23b7e2ab8a2374803144de849727d3bfb7c451414cf361ae93376cc66f35f5b126539bc9b921de84b9a46a02151e0d63484a870
7
- data.tar.gz: c99bf6e46a19bcefd38d9e5436fa562425dcaa40cbd33e3c3565f3d511ff56ac441bc7fa23aaf55b526068f9a220c6a3583a055d577dafa9091c65b13756be65
6
+ metadata.gz: 1a1d8115b21cf42c7cd8eecfeffb1c462a3074594648f02b18f6d3bd780a0a5ff84da2f95f47bb8312a4720a9abdb969a51843df7e3260ce965a62cc46788140
7
+ data.tar.gz: a69508c71040b07c3bcd3367cc60488a0501b3994b5fce81e3b5bf36e2ee350f23fba7e4bc7ec68575d55d5139541d5c3019e3141f3e6cc0325e04ed2cc22286
@@ -66,7 +66,8 @@ module EnMasse::Refinements
66
66
  if %w(created_at updated_at).include? column_name
67
67
  "now()"
68
68
  else
69
- ActiveRecord::Base.connection.quote(self.send(column_name))
69
+ conn = ActiveRecord::Base.connection
70
+ conn.quote( conn.type_cast(self.send(column_name), column) )
70
71
  end
71
72
  }
72
73
  end
@@ -1,3 +1,3 @@
1
1
  module EnMasse
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: en_masse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski