rails3_devise_wizard 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/recipes/add_user_name.rb +4 -29
- data/version.rb +1 -1
- metadata +3 -3
data/recipes/add_user_name.rb
CHANGED
@@ -30,36 +30,11 @@ RUBY
|
|
30
30
|
end
|
31
31
|
|
32
32
|
if recipes.include? 'devise'
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
# Modify Devise views to add 'name'
|
39
|
-
inject_into_file "app/views/devise/registrations/edit.html.erb", :after => "<%= devise_error_messages! %>\n" do
|
40
|
-
<<-ERB
|
41
|
-
<p><%= f.label :name %><br />
|
42
|
-
<%= f.text_field :name %></p>
|
43
|
-
ERB
|
44
|
-
end
|
45
|
-
|
46
|
-
inject_into_file "app/views/devise/registrations/new.html.erb", :after => "<%= devise_error_messages! %>\n" do
|
47
|
-
<<-ERB
|
48
|
-
<p><%= f.label :name %><br />
|
49
|
-
<%= f.text_field :name %></p>
|
50
|
-
ERB
|
51
|
-
end
|
52
|
-
|
53
|
-
else
|
54
|
-
|
55
|
-
# copy Haml versions of modified Devise views
|
56
|
-
inside 'app/views/devise/registrations' do
|
57
|
-
get 'https://github.com/fortuity/rails3-application-templates/raw/master/files/rails3-mongoid-devise/app/views/devise/registrations/edit.html.haml', 'edit.html.haml'
|
58
|
-
get 'https://github.com/fortuity/rails3-application-templates/raw/master/files/rails3-mongoid-devise/app/views/devise/registrations/new.html.haml', 'new.html.haml'
|
59
|
-
end
|
60
|
-
|
33
|
+
# install versions of modified Devise views
|
34
|
+
inside 'app/views/devise/registrations' do
|
35
|
+
get 'https://github.com/fortuity/rails3-application-templates/raw/master/files/rails3-mongoid-devise/app/views/devise/registrations/edit.html.erb', 'edit.html.erb'
|
36
|
+
get 'https://github.com/fortuity/rails3-application-templates/raw/master/files/rails3-mongoid-devise/app/views/devise/registrations/new.html.erb', 'new.html.erb'
|
61
37
|
end
|
62
|
-
|
63
38
|
end
|
64
39
|
|
65
40
|
end
|
data/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rails3_devise_wizard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Daniel Kehoe
|
@@ -174,7 +174,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
174
|
requirements:
|
175
175
|
- - ">="
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
hash:
|
177
|
+
hash: 3044634281071022472
|
178
178
|
segments:
|
179
179
|
- 0
|
180
180
|
version: "0"
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
184
184
|
- - ">="
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
hash:
|
186
|
+
hash: 3044634281071022472
|
187
187
|
segments:
|
188
188
|
- 0
|
189
189
|
version: "0"
|