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 +4 -4
- data/lib/russian_phone/rails_admin.rb +4 -4
- data/lib/russian_phone/version.rb +1 -1
- data/lib/russian_phone.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f1fe1b297257c2f2a7d0eb44a9e04b00943656
|
4
|
+
data.tar.gz: da1a9e742bc002d2bb84a959d90fd6e30d1c3ab0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
13
|
-
if
|
14
|
-
|
12
|
+
def type
|
13
|
+
if property.type.class.name == "RussianPhone::Field"
|
14
|
+
:string
|
15
15
|
else
|
16
|
-
type_without_russian_phone
|
16
|
+
type_without_russian_phone
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/russian_phone.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongoid
|