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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0b417a31b5acfd2de95be0118c9de895180de10
4
- data.tar.gz: e9429ee6eb4669612fadcdfaf477797f8e01df8f
3
+ metadata.gz: 35bdfbeb5eff063ad701245d32abd2665145d400
4
+ data.tar.gz: fccde7e50031578a3b1cb4641efcee87b3b3baaf
5
5
  SHA512:
6
- metadata.gz: e6225dff732218e13d32338ca3ecba4dde66a1007b14ea1428c11e61c2b2f1f550244217ae65da1a859077e68b2b6faef02bcd1c62bc2e67e517267c47cbeb3e
7
- data.tar.gz: 10999846cc29b58df253f374fefed95770720b9e2c5706e9f74e237f461a51fee5d515258a094ec5d69ef0cf959fc56745924349893f23c2c2a92e2631e3d931
6
+ metadata.gz: 74bfaf3d297ddaad7502d04935a021e3e958bf308daceb7ecd38012c34d3c8bca09ea23cbb4f1813a3d1fbb74089bd74f5dfdc6b3090d32eff239a8e93c0643b
7
+ data.tar.gz: 65585b01ed39d0e3fbf00116fcdba72117300f11cfec02060bd7552733bde5f7c5b0e38df69ca3ee2987c3b04d9f9e721c342cba7bc36a8ee979cd2487c6a8ba
@@ -16,10 +16,7 @@ class Ish::Lead
16
16
  field :company, :default => ''
17
17
  field :description
18
18
 
19
- =begin
20
- field :amount, :type => Float
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
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.42
4
+ version: 0.0.33.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox