ish_models 0.0.33.42 → 0.0.33.43
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ish/lead.rb +2 -5
- data/lib/ish_models/user_profile.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35bdfbeb5eff063ad701245d32abd2665145d400
|
4
|
+
data.tar.gz: fccde7e50031578a3b1cb4641efcee87b3b3baaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74bfaf3d297ddaad7502d04935a021e3e958bf308daceb7ecd38012c34d3c8bca09ea23cbb4f1813a3d1fbb74089bd74f5dfdc6b3090d32eff239a8e93c0643b
|
7
|
+
data.tar.gz: 65585b01ed39d0e3fbf00116fcdba72117300f11cfec02060bd7552733bde5f7c5b0e38df69ca3ee2987c3b04d9f9e721c342cba7bc36a8ee979cd2487c6a8ba
|
data/lib/ish/lead.rb
CHANGED
@@ -16,10 +16,7 @@ class Ish::Lead
|
|
16
16
|
field :company, :default => ''
|
17
17
|
field :description
|
18
18
|
|
19
|
-
=
|
20
|
-
field :
|
21
|
-
has_many :payments, :class_name => 'Ish::Payment'
|
22
|
-
field :description, :type => String
|
23
|
-
=end
|
19
|
+
STATES = [ :considering, :applied ]
|
20
|
+
field :state, :type => Symbol
|
24
21
|
|
25
22
|
end
|
@@ -4,7 +4,10 @@ class IshModels::UserProfile
|
|
4
4
|
|
5
5
|
field :username, :type => String
|
6
6
|
field :name
|
7
|
+
|
7
8
|
field :email
|
9
|
+
validates_format_of :email, :with => Devise::email_regexp
|
10
|
+
# validates_format_of :email,:with => /\A[^@\s]+@([^@\s]+\.)+[^@\s]+\z/
|
8
11
|
|
9
12
|
field :fb_access_token
|
10
13
|
field :fb_long_access_token
|
@@ -23,6 +26,9 @@ class IshModels::UserProfile
|
|
23
26
|
ROLES = [ :admin, :manager, :guy ]
|
24
27
|
field :role_name, :type => Symbol
|
25
28
|
|
29
|
+
TAGS = [ :social, :professional ]
|
30
|
+
field :tag, :type => Symbol
|
31
|
+
|
26
32
|
belongs_to :user
|
27
33
|
belongs_to :current_city, :class_name => 'City', :inverse_of => :current_users, :optional => true
|
28
34
|
belongs_to :guide_city, :class_name => 'City', :inverse_of => :guide, :optional => true
|