wbase 0.2.9 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02021b862a568e2f067a1c92c42b1000238dc0e
|
4
|
+
data.tar.gz: 422f2f31a08e52e100b15097005a252da0fd252d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5843bf47cb6a72ae144b6aaac8af0ee09f2542cbb06675317a37d20403d2504fcc3e470c3e7a5ce3d6572324f5755eef26b47ddfdc7a674ccbf586cd9a06f743
|
7
|
+
data.tar.gz: f7c7fcb39b03800d20daee5217e6e6e586edceb64e8b68f68be0124739aef44269d9a97c879f62d7beb8df4ca9b11f17e66d2c9078639283c483d951aa6a4f49
|
@@ -6,7 +6,10 @@ module Wbase
|
|
6
6
|
|
7
7
|
included do
|
8
8
|
attr_reader :password
|
9
|
-
validates :email, presence: true
|
9
|
+
validates :email, presence: true
|
10
|
+
validates :email, uniqueness: {
|
11
|
+
message: 'Hmm. That email has already been taken. If you are a new consultant please email hello@roeme.com'
|
12
|
+
}
|
10
13
|
validates :password, length: { minimum: 7, allow_nil: true }
|
11
14
|
has_one :subscription, class_name: 'Wbase::Subscription'
|
12
15
|
scope :verified, -> { where(verified: true) }
|
@@ -12,7 +12,7 @@
|
|
12
12
|
<div class="form-group ">
|
13
13
|
<div class="col-xs-12">
|
14
14
|
<label for="email">Email</label>
|
15
|
-
<input class="form-control" id="email" type="email" name="user[email]" required="" placeholder="first.last@gmail.com">
|
15
|
+
<input class="form-control" id="email" type="email" name="user[email]" required="" placeholder="first.last@gmail.com" value="<%= @user.email %>" autocomplete="email">
|
16
16
|
</div>
|
17
17
|
</div>
|
18
18
|
|
data/lib/wbase/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CJ Avilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|