scaffolding_extensions 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README
CHANGED
@@ -21,16 +21,16 @@ to better suit your needs.
|
|
21
21
|
Scaffolding Extensions currently supports:
|
22
22
|
|
23
23
|
* Web Frameworks
|
24
|
-
* Rails 2.
|
25
|
-
* Ramaze 2009.
|
24
|
+
* Rails 2.3.2
|
25
|
+
* Ramaze 2009.02
|
26
26
|
* Camping 1.5
|
27
|
-
* Sinatra 0.9.
|
27
|
+
* Sinatra 0.9.1
|
28
28
|
* Merb 1.0.4
|
29
|
-
* Object
|
30
|
-
* ActiveRecord 2.
|
31
|
-
* Sequel 2.
|
29
|
+
* Object Relational Mappers
|
30
|
+
* ActiveRecord 2.3.2
|
31
|
+
* Sequel 2.11.0
|
32
32
|
* Javascript Libaries (used for Ajax/Autocompleting)
|
33
|
-
* Prototype 1.6.0.
|
33
|
+
* Prototype 1.6.0.3
|
34
34
|
* JQuery 1.2.3
|
35
35
|
|
36
36
|
Support for other web frameworks and ORMs can be added, see the
|
@@ -48,20 +48,20 @@ module ScaffoldingExtensions
|
|
48
48
|
@scaffold_options ||= options
|
49
49
|
@scaffold_suffix ||= suffix
|
50
50
|
@scaffold_class ||= @scaffold_options[:class]
|
51
|
-
|
52
|
-
{:action=>suffix_action}.merge(render_options)
|
53
|
-
elsif render_options.include?(:inline)
|
51
|
+
if render_options.include?(:inline)
|
54
52
|
headers['Content-Type'] = 'text/javascript' if @scaffold_javascript
|
55
|
-
render_options.merge(:layout=>false)
|
56
|
-
|
53
|
+
return render(render_options.merge(:layout=>false))
|
54
|
+
end
|
55
|
+
begin
|
56
|
+
render({:action=>suffix_action}.merge(render_options))
|
57
|
+
rescue ActionView::MissingTemplate
|
57
58
|
if active_layout || render_options.include?(:layout)
|
58
|
-
{:file=>scaffold_path(action), :layout=>active_layout}.merge(render_options)
|
59
|
+
render({:file=>scaffold_path(action), :layout=>active_layout}.merge(render_options))
|
59
60
|
else
|
60
61
|
@content = render_to_string({:file=>scaffold_path(action)}.merge(render_options))
|
61
|
-
{:file=>scaffold_path("layout")}
|
62
|
+
render({:file=>scaffold_path("layout")})
|
62
63
|
end
|
63
64
|
end
|
64
|
-
render(render_options)
|
65
65
|
end
|
66
66
|
|
67
67
|
def scaffold_request_action
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffolding_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Evans
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-03-16 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|