railties 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/rails/generators/erb/scaffold/templates/index.html.erb +1 -1
- data/lib/rails/generators/rails/controller/templates/controller.rb +1 -1
- data/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec +2 -0
- data/lib/rails/generators/rails/plugin_new/templates/Rakefile +1 -1
- data/lib/rails/generators/rails/scaffold_controller/templates/controller.rb +1 -1
- data/lib/rails/tasks/framework.rake +1 -1
- data/lib/rails/version.rb +1 -1
- metadata +10 -10
data/CHANGELOG.md
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
<% end -%>
|
18
18
|
<td><%%= link_to 'Show', <%= singular_table_name %> %></td>
|
19
19
|
<td><%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %></td>
|
20
|
-
<td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :
|
20
|
+
<td><%%= link_to 'Destroy', <%= singular_table_name %>, <%= key_value :method, ":delete" %>, <%= key_value :data, "{ #{key_value :confirm, "'Are you sure?'"} }" %> %></td>
|
21
21
|
</tr>
|
22
22
|
<%% end %>
|
23
23
|
</table>
|
@@ -22,6 +22,8 @@ Gem::Specification.new do |s|
|
|
22
22
|
<% if full? && !options[:skip_javascript] -%>
|
23
23
|
# s.add_dependency "<%= "#{options[:javascript]}-rails" %>"
|
24
24
|
<% end -%>
|
25
|
+
<% unless options[:skip_active_record] -%>
|
25
26
|
|
26
27
|
s.add_development_dependency "<%= gem_for_database %>"
|
28
|
+
<% end -%>
|
27
29
|
end
|
@@ -20,7 +20,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
23
|
-
<% if full? && !options[:skip_active_record] -%>
|
23
|
+
<% if full? && !options[:skip_active_record] && !options[:skip_test_unit] -%>
|
24
24
|
APP_RAKEFILE = File.expand_path("../<%= dummy_path -%>/Rakefile", __FILE__)
|
25
25
|
load 'rails/tasks/engine.rake'
|
26
26
|
<% end %>
|
@@ -20,7 +20,7 @@ namespace :rails do
|
|
20
20
|
project_templates = "#{Rails.root}/lib/templates"
|
21
21
|
|
22
22
|
default_templates = { "erb" => %w{controller mailer scaffold},
|
23
|
-
"rails" => %w{controller helper scaffold_controller
|
23
|
+
"rails" => %w{controller helper scaffold_controller assets} }
|
24
24
|
|
25
25
|
default_templates.each do |type, names|
|
26
26
|
local_template_type_dir = File.join(project_templates, type)
|
data/lib/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railties
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 3.2.
|
9
|
+
- 6
|
10
|
+
version: 3.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- David Heinemeier Hansson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-06-
|
18
|
+
date: 2012-06-12 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|
@@ -95,12 +95,12 @@ dependencies:
|
|
95
95
|
requirements:
|
96
96
|
- - "="
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
hash:
|
98
|
+
hash: 3
|
99
99
|
segments:
|
100
100
|
- 3
|
101
101
|
- 2
|
102
|
-
-
|
103
|
-
version: 3.2.
|
102
|
+
- 6
|
103
|
+
version: 3.2.6
|
104
104
|
type: :runtime
|
105
105
|
version_requirements: *id005
|
106
106
|
- !ruby/object:Gem::Dependency
|
@@ -111,12 +111,12 @@ dependencies:
|
|
111
111
|
requirements:
|
112
112
|
- - "="
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
hash:
|
114
|
+
hash: 3
|
115
115
|
segments:
|
116
116
|
- 3
|
117
117
|
- 2
|
118
|
-
-
|
119
|
-
version: 3.2.
|
118
|
+
- 6
|
119
|
+
version: 3.2.6
|
120
120
|
type: :runtime
|
121
121
|
version_requirements: *id006
|
122
122
|
description: "Rails internals: application bootup, plugins, generators, and rake tasks."
|