ish_models 0.0.33.48 → 0.0.33.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/co_tailors/address.rb +17 -0
- data/lib/co_tailors/order.rb +11 -0
- data/lib/co_tailors/pant.rb +7 -0
- data/lib/co_tailors/profile_measurement.rb +14 -0
- data/lib/co_tailors/shirt.rb +7 -0
- data/lib/co_tailors/suit.rb +7 -0
- data/lib/co_tailors.rb +3 -0
- data/lib/ish/lead.rb +3 -0
- data/lib/ish_models/user_profile.rb +5 -0
- data/lib/ish_models.rb +16 -1
- metadata +8 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3708a91c0838cb91fc7f8fa3be8aa960487e49df
|
4
|
+
data.tar.gz: 62af38ca3b04abbd9ae31ce3584b1bba140108cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d3aef1d03ad892385ab5071fb23621ea294e14f9d59562fadec0114e4f86e5e730a255fa9d6609c66eb9c785103fafc275ae95a4a0bed9b37a5f5c02489b4c
|
7
|
+
data.tar.gz: 88e579be2f3cecfc984d34f55d10d29837917a9527d213a48b9a795b976a8ab29b513a901b02ef47bddbf44c57a3150076b5c7a4d79071c56449a9f102d9d6e3
|
@@ -0,0 +1,17 @@
|
|
1
|
+
|
2
|
+
class CoTailors::Address
|
3
|
+
include Mongoid::Document
|
4
|
+
include Mongoid::Timestamps
|
5
|
+
|
6
|
+
belongs_to :profile, :class_name => '::IshModels::UserProfile'
|
7
|
+
|
8
|
+
field :name
|
9
|
+
field :address_1
|
10
|
+
field :address_2
|
11
|
+
field :city
|
12
|
+
field :state
|
13
|
+
field :zip
|
14
|
+
field :phone
|
15
|
+
|
16
|
+
end
|
17
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
class CoTailors::ProfileMeasurement
|
3
|
+
include Mongoid::Document
|
4
|
+
include Mongoid::Timestamps
|
5
|
+
|
6
|
+
UNITS = [ :inches, :centimeters ]
|
7
|
+
field :units, :type => Symbol
|
8
|
+
|
9
|
+
field :neck_across, :type => Float
|
10
|
+
|
11
|
+
belongs_to :profile, :class_name => '::IshModels::UserProfile'
|
12
|
+
|
13
|
+
end
|
14
|
+
|
data/lib/co_tailors.rb
ADDED
data/lib/ish/lead.rb
CHANGED
@@ -63,4 +63,9 @@ class IshModels::UserProfile
|
|
63
63
|
[['', nil]] + out.map { |item| [ item.name, item.id ] }
|
64
64
|
end
|
65
65
|
|
66
|
+
# colombia tailors
|
67
|
+
has_many :measurements, :class_name => '::CoTailors::ProfileMeasurement'
|
68
|
+
has_many :addresses, :class_name => '::CoTailors::Address'
|
69
|
+
has_many :co_orders, :class_name => '::CoTailors::Order'
|
70
|
+
|
66
71
|
end
|
data/lib/ish_models.rb
CHANGED
@@ -17,6 +17,14 @@ module IshModels
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
require 'co_tailors'
|
21
|
+
require 'co_tailors/pant.rb'
|
22
|
+
require 'co_tailors/shirt.rb'
|
23
|
+
require 'co_tailors/suit.rb'
|
24
|
+
require 'co_tailors/profile_measurement.rb'
|
25
|
+
require 'co_tailors/order.rb'
|
26
|
+
require 'co_tailors/address.rb'
|
27
|
+
|
20
28
|
require 'ish/gallery_name.rb'
|
21
29
|
require 'ish/payment.rb'
|
22
30
|
require 'ish/stock_action.rb'
|
@@ -45,6 +53,13 @@ require 'public_item.rb'
|
|
45
53
|
require 'report.rb'
|
46
54
|
require 'site.rb'
|
47
55
|
require 'tag.rb'
|
48
|
-
# require 'user_profile.rb'
|
49
56
|
require 'venue.rb'
|
50
57
|
require 'video.rb'
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.33.
|
4
|
+
version: 0.0.33.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
@@ -70,6 +70,13 @@ files:
|
|
70
70
|
- lib/cities_user.rb
|
71
71
|
- lib/cities_user.rb~
|
72
72
|
- lib/city.rb
|
73
|
+
- lib/co_tailors.rb
|
74
|
+
- lib/co_tailors/address.rb
|
75
|
+
- lib/co_tailors/order.rb
|
76
|
+
- lib/co_tailors/pant.rb
|
77
|
+
- lib/co_tailors/profile_measurement.rb
|
78
|
+
- lib/co_tailors/shirt.rb
|
79
|
+
- lib/co_tailors/suit.rb
|
73
80
|
- lib/country.rb
|
74
81
|
- lib/event.rb
|
75
82
|
- lib/feature.rb
|