russian_phone 0.4.0 → 0.4.1

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: 691b7c30d9c45e5eda62e256a30aee50ca90095e
4
- data.tar.gz: 0230e4dca9827def0c1a3f958257f4f6847ec3d5
3
+ metadata.gz: d3f1fe1b297257c2f2a7d0eb44a9e04b00943656
4
+ data.tar.gz: da1a9e742bc002d2bb84a959d90fd6e30d1c3ab0
5
5
  SHA512:
6
- metadata.gz: 13cc8d62bf62e9ef6e17a237de6b166b6ea2ac029ddf0848c36431626339e251726362fb00c8745f856da9558e27fa76ee394bfd1e8c14ad2ede88622c86f672
7
- data.tar.gz: 808b86c9676a76aaa7be3014320e751d3fe255bd57720ceda6b0da785e47d7b2fc417a2f4ca7268c23ae4fbf0de6346f8fcea38093884a8befc4a351491d33b0
6
+ metadata.gz: afd2be817c313d7620e122c8a195ab75e9b6e6b1e8524f927d4a0720d13494df9f040edafc5a5949af54f01ec74e52e41f8a44b07d62e797e17bc2ad4c643a80
7
+ data.tar.gz: f698d3ca5d1202e1ba378c592f73b4665dccba79fa994232ecc78ccaff92f84fd9352f90e87293dacdac4489100a0d3c7578107d6cedb8e2bb3a131cc145ae0e
@@ -9,11 +9,11 @@ module RailsAdmin
9
9
  module Mongoid
10
10
  class Property
11
11
  alias_method :type_without_russian_phone, :type
12
- def type(name, field)
13
- if field.type.class.name == "RussianPhone::Field"
14
- { :type => :string }
12
+ def type
13
+ if property.type.class.name == "RussianPhone::Field"
14
+ :string
15
15
  else
16
- type_without_russian_phone(name, field)
16
+ type_without_russian_phone
17
17
  end
18
18
  end
19
19
  end
@@ -1,4 +1,4 @@
1
1
  module RussianPhone
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
4
4
 
data/lib/russian_phone.rb CHANGED
@@ -17,3 +17,4 @@ end
17
17
  if Object.const_defined?("RailsAdmin")
18
18
  require "russian_phone/rails_admin"
19
19
  end
20
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: russian_phone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid