prologue 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/prologue/cli.rb +1 -1
- data/lib/prologue/version.rb +1 -1
- data/templates/devise.rb +8 -4
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/prologue/cli.rb
CHANGED
data/lib/prologue/version.rb
CHANGED
data/templates/devise.rb
CHANGED
@@ -42,12 +42,16 @@ run 'rm app/models/user.rb'
|
|
42
42
|
create_file 'app/models/user.rb' do
|
43
43
|
<<-RUBY
|
44
44
|
class User < ActiveRecord::Base
|
45
|
-
devise :database_authenticatable, :token_authenticatable, :recoverable, :rememberable, :trackable, :
|
45
|
+
devise :database_authenticatable, :token_authenticatable, :recoverable, :rememberable, :trackable, :confirmable
|
46
46
|
default_scope :conditions => { :deleted_at => nil }
|
47
|
-
validates_presence_of :
|
48
|
-
|
47
|
+
validates_presence_of :name, :email
|
48
|
+
validates_presence_of :password, :on => :create
|
49
|
+
validates_confirmation_of :password, :on => :create
|
50
|
+
validates_length_of :password, :within => 6..30, :allow_blank => true
|
51
|
+
validates_uniqueness_of :email, :case_sensitive => false, :scope => :deleted_at
|
52
|
+
validates_format_of :email, :with => Devise::email_regexp
|
53
|
+
|
49
54
|
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
|
50
|
-
has_friendly_id :name, :use_slug => true, :strip_non_ascii => true
|
51
55
|
|
52
56
|
def destroy
|
53
57
|
self.update_attribute(:deleted_at, Time.now.utc)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 11
|
9
|
+
version: 0.3.11
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Quick Left
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-12-15 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -184,6 +184,6 @@ rubyforge_project: prologue
|
|
184
184
|
rubygems_version: 1.3.7
|
185
185
|
signing_key:
|
186
186
|
specification_version: 3
|
187
|
-
summary: prologue-0.3.
|
187
|
+
summary: prologue-0.3.11
|
188
188
|
test_files: []
|
189
189
|
|