scaffolding_extensions 1.5.0 → 1.5.1
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,14 +21,14 @@ to better suit your needs.
|
|
21
21
|
Scaffolding Extensions currently supports:
|
22
22
|
|
23
23
|
* Web Frameworks
|
24
|
-
* Rails 3.0.
|
25
|
-
* Ramaze
|
24
|
+
* Rails 3.0.9
|
25
|
+
* Ramaze 2011.01.30
|
26
26
|
* Camping 2.1
|
27
|
-
* Sinatra 1.
|
28
|
-
* Rack 1.2.
|
27
|
+
* Sinatra 1.2.6
|
28
|
+
* Rack 1.2.2
|
29
29
|
* Object Relational Mappers
|
30
|
-
* ActiveRecord 3.0.
|
31
|
-
* Sequel 3.
|
30
|
+
* ActiveRecord 3.0.9
|
31
|
+
* Sequel 3.25.0
|
32
32
|
* DataMapper 1.0.2 (see doc/datamapper.txt for details)
|
33
33
|
* Javascript Libaries (used for Ajax/Autocompleting, default is now JQuery)
|
34
34
|
* Prototype 1.6.0.3
|
data/doc/datamapper.txt
CHANGED
@@ -17,4 +17,6 @@ The DataMapper module has some quirks, mainly:
|
|
17
17
|
scaffold_all_models :only =>[DmEmployee, DmGroup, DmPosition]
|
18
18
|
end
|
19
19
|
|
20
|
-
You need dm-core, dm-validations,
|
20
|
+
You need dm-core, dm-validations, dm-transactions to use scaffolding
|
21
|
+
extensions with datamapper. You also need do_sqlite3 in order to run
|
22
|
+
the test_suite for scaffolding_extensions with datamapper.
|
@@ -49,7 +49,9 @@ module ScaffoldingExtensions
|
|
49
49
|
views_path = render_options.delete(:views) || self.class.views || "./views"
|
50
50
|
views_dir = Dir.new(views_path) rescue nil
|
51
51
|
template = scaffold_template_code(views_dir, suffix_action, action)
|
52
|
-
|
52
|
+
layout_file = settings.send(:erb)[:layout] if settings.respond_to?(:erb)
|
53
|
+
layout_file ||= :layout
|
54
|
+
layout = scaffold_template_code(views_dir, layout_file, 'layout'){|s| s.gsub('@content', 'yield')}
|
53
55
|
render(:erb, template, :layout=>layout)
|
54
56
|
end
|
55
57
|
end
|
@@ -167,9 +167,10 @@ module ScaffoldingExtensions::MetaModel
|
|
167
167
|
end
|
168
168
|
|
169
169
|
# Whether to use autocompleting for linked associations. Defaults to whether the
|
170
|
-
# associated class uses auto completing.
|
170
|
+
# associated class uses auto completing. Always false if scaffold_association_find_objects
|
171
|
+
# is overridden for the specific association.
|
171
172
|
def scaffold_association_use_auto_complete(association)
|
172
|
-
scaffold_associated_class(association).scaffold_use_auto_complete
|
173
|
+
scaffold_associated_class(association).scaffold_use_auto_complete && !respond_to?("scaffold_#{association}_association_find_objects")
|
173
174
|
end
|
174
175
|
|
175
176
|
# Defaults to associations specified by scaffold fields that are autocompleting. Can be set with an instance variable.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scaffolding_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 1
|
10
|
+
version: 1.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Evans
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-01
|
18
|
+
date: 2011-08-01 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|