scaffolding_extensions 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
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.2.2
25
- * Ramaze 2009.01
24
+ * Rails 2.3.2
25
+ * Ramaze 2009.02
26
26
  * Camping 1.5
27
- * Sinatra 0.9.0.4
27
+ * Sinatra 0.9.1
28
28
  * Merb 1.0.4
29
- * Object/Relational Mappers
30
- * ActiveRecord 2.2.2
31
- * Sequel 2.10.0
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.1
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
- render_options = if template_exists?("#{self.class.controller_path}/#{suffix_action}")
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
- else
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.5
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-02-19 00:00:00 -08:00
12
+ date: 2009-03-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15