active_scaffold 3.0.23 → 3.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/frontends/default/views/_action_group.html.erb +1 -1
  2. data/frontends/default/views/_action_group.html.erb~ +24 -0
  3. data/frontends/default/views/_form.html.erb~ +26 -0
  4. data/frontends/default/views/_form_association.html.erb~ +19 -0
  5. data/frontends/default/views/_form_association_footer.html.erb~ +16 -6
  6. data/frontends/default/views/_horizontal_subform.html.erb~ +29 -0
  7. data/frontends/default/views/_horizontal_subform_header.html.erb~ +3 -2
  8. data/frontends/default/views/_list_actions.html.erb~ +15 -0
  9. data/frontends/default/views/_list_inline_adapter.html.erb~ +10 -0
  10. data/frontends/default/views/_list_messages.html.erb~ +30 -0
  11. data/frontends/default/views/_list_pagination.html.erb~ +11 -0
  12. data/frontends/default/views/_list_pagination_links.html.erb~ +0 -0
  13. data/frontends/default/views/_render_field.js.erb~ +23 -0
  14. data/frontends/default/views/_row.html.erb~ +6 -0
  15. data/frontends/default/views/_vertical_subform.html.erb~ +12 -0
  16. data/frontends/default/views/edit_associated.js.erb~ +13 -0
  17. data/frontends/default/views/on_create.js.rjs +2 -2
  18. data/frontends/default/views/render_field.js.erb~ +1 -0
  19. data/lib/active_scaffold/actions/core.rb~ +13 -5
  20. data/lib/active_scaffold/actions/create.rb~ +149 -0
  21. data/lib/active_scaffold/actions/list.rb~ +196 -0
  22. data/lib/active_scaffold/actions/nested.rb +6 -2
  23. data/lib/active_scaffold/actions/nested.rb~ +252 -0
  24. data/lib/active_scaffold/actions/search.rb~ +49 -0
  25. data/lib/active_scaffold/actions/subform.rb~ +27 -0
  26. data/lib/active_scaffold/actions/update.rb~ +149 -0
  27. data/lib/active_scaffold/attribute_params.rb~ +202 -0
  28. data/lib/active_scaffold/bridges/record_select/{lib/record_select_bridge.rb~ → helpers.rb~} +7 -16
  29. data/lib/active_scaffold/bridges/shared/date_bridge.rb~ +209 -0
  30. data/lib/active_scaffold/config/create.rb +4 -4
  31. data/lib/active_scaffold/config/nested.rb +1 -0
  32. data/lib/active_scaffold/config/nested.rb~ +41 -0
  33. data/lib/active_scaffold/config/search.rb~ +74 -0
  34. data/lib/active_scaffold/constraints.rb~ +186 -0
  35. data/lib/active_scaffold/data_structures/action_columns.rb~ +140 -0
  36. data/lib/active_scaffold/data_structures/action_link.rb +4 -4
  37. data/lib/active_scaffold/data_structures/action_link.rb~ +179 -0
  38. data/lib/active_scaffold/data_structures/nested_info.rb~ +124 -0
  39. data/lib/active_scaffold/extensions/action_controller_rendering.rb~ +22 -0
  40. data/lib/active_scaffold/extensions/action_view_rendering.rb~ +108 -0
  41. data/lib/active_scaffold/extensions/cache_association.rb~ +12 -0
  42. data/lib/active_scaffold/extensions/reverse_associations.rb~ +64 -0
  43. data/lib/active_scaffold/extensions/routing_mapper.rb~ +34 -0
  44. data/lib/active_scaffold/extensions/unsaved_associated.rb~ +62 -0
  45. data/lib/active_scaffold/finder.rb~ +370 -0
  46. data/lib/active_scaffold/helpers/controller_helpers.rb~ +101 -0
  47. data/lib/active_scaffold/helpers/form_column_helpers.rb~ +321 -0
  48. data/lib/active_scaffold/helpers/id_helpers.rb~ +123 -0
  49. data/lib/active_scaffold/helpers/list_column_helpers.rb +9 -6
  50. data/lib/active_scaffold/helpers/list_column_helpers.rb~ +368 -0
  51. data/lib/active_scaffold/helpers/search_column_helpers.rb~ +94 -46
  52. data/lib/active_scaffold/helpers/view_helpers.rb +1 -1
  53. data/lib/active_scaffold/helpers/view_helpers.rb~ +353 -0
  54. data/lib/active_scaffold/version.rb +1 -1
  55. data/lib/active_scaffold.rb +1 -1
  56. data/lib/active_scaffold.rb~ +362 -0
  57. metadata +110 -76
  58. data/lib/active_scaffold/bridges/dragonfly/bridge.rb~ +0 -12
  59. data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb~ +0 -36
  60. data/lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb~ +0 -12
  61. data/lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb~ +0 -27
  62. data/lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb~ +0 -16
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- hash: 41
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 23
10
- version: 3.0.23
9
+ - 24
10
+ version: 3.0.24
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-05 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-10-07 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ requirement: &id001 !ruby/object:Gem::Requirement
23
22
  none: false
24
23
  requirements:
25
24
  - - ">="
@@ -28,12 +27,12 @@ dependencies:
28
27
  segments:
29
28
  - 0
30
29
  version: "0"
31
- requirement: *id001
32
- prerelease: false
33
30
  type: :development
34
31
  name: shoulda
32
+ version_requirements: *id001
33
+ prerelease: false
35
34
  - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
35
+ requirement: &id002 !ruby/object:Gem::Requirement
37
36
  none: false
38
37
  requirements:
39
38
  - - ~>
@@ -44,12 +43,12 @@ dependencies:
44
43
  - 0
45
44
  - 0
46
45
  version: 1.0.0
47
- requirement: *id002
48
- prerelease: false
49
46
  type: :development
50
47
  name: bundler
48
+ version_requirements: *id002
49
+ prerelease: false
51
50
  - !ruby/object:Gem::Dependency
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
51
+ requirement: &id003 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
55
54
  - - ">="
@@ -58,12 +57,12 @@ dependencies:
58
57
  segments:
59
58
  - 0
60
59
  version: "0"
61
- requirement: *id003
62
- prerelease: false
63
60
  type: :development
64
61
  name: rcov
62
+ version_requirements: *id003
63
+ prerelease: false
65
64
  - !ruby/object:Gem::Dependency
66
- version_requirements: &id004 !ruby/object:Gem::Requirement
65
+ requirement: &id004 !ruby/object:Gem::Requirement
67
66
  none: false
68
67
  requirements:
69
68
  - - ">="
@@ -72,12 +71,12 @@ dependencies:
72
71
  segments:
73
72
  - 0
74
73
  version: "0"
75
- requirement: *id004
76
- prerelease: false
77
74
  type: :runtime
78
75
  name: render_component_vho
76
+ version_requirements: *id004
77
+ prerelease: false
79
78
  - !ruby/object:Gem::Dependency
80
- version_requirements: &id005 !ruby/object:Gem::Requirement
79
+ requirement: &id005 !ruby/object:Gem::Requirement
81
80
  none: false
82
81
  requirements:
83
82
  - - ">="
@@ -86,12 +85,12 @@ dependencies:
86
85
  segments:
87
86
  - 0
88
87
  version: "0"
89
- requirement: *id005
90
- prerelease: false
91
88
  type: :runtime
92
89
  name: verification
90
+ version_requirements: *id005
91
+ prerelease: false
93
92
  - !ruby/object:Gem::Dependency
94
- version_requirements: &id006 !ruby/object:Gem::Requirement
93
+ requirement: &id006 !ruby/object:Gem::Requirement
95
94
  none: false
96
95
  requirements:
97
96
  - - ~>
@@ -102,10 +101,10 @@ dependencies:
102
101
  - 0
103
102
  - 0
104
103
  version: 3.0.0
105
- requirement: *id006
106
- prerelease: false
107
104
  type: :runtime
108
105
  name: rails
106
+ version_requirements: *id006
107
+ prerelease: false
109
108
  description: Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
110
109
  email: activescaffold@googlegroups.com
111
110
  executables: []
@@ -153,66 +152,86 @@ files:
153
152
  - frontends/default/views/_list_column_headings.html.erb
154
153
  - frontends/default/views/_list_header.html.erb
155
154
  - frontends/default/views/_list_inline_adapter.html.erb
156
- - frontends/default/views/_list_messages.html.erb
157
- - frontends/default/views/_list_pagination.html.erb
158
155
  - frontends/default/views/_list_pagination_links.html.erb
159
156
  - frontends/default/views/_list_record.html.erb
160
- - frontends/default/views/_list_record_columns.html.erb
157
+ - frontends/default/views/_action_group.html.erb
158
+ - frontends/default/views/_list_messages.html.erb
159
+ - frontends/default/views/_row.html.erb
161
160
  - frontends/default/views/_messages.html.erb
162
- - frontends/default/views/_render_field.js.rjs
163
- - frontends/default/views/_show.html.erb
164
161
  - frontends/default/views/_search.html.erb
165
- - frontends/default/views/destroy.js.rjs
162
+ - frontends/default/views/_show.html.erb
163
+ - frontends/default/views/list.html.erb
164
+ - frontends/default/views/list.js.rjs
166
165
  - frontends/default/views/_show_columns.html.erb
167
166
  - frontends/default/views/_update_actions.html.erb
168
167
  - frontends/default/views/_update_form.html.erb
169
168
  - frontends/default/views/_vertical_subform.html.erb
170
169
  - frontends/default/views/_vertical_subform_record.html.erb
171
- - frontends/default/views/add_existing.js.rjs
170
+ - frontends/default/views/_base_form.html.erb
171
+ - frontends/default/views/delete.html.erb
172
172
  - frontends/default/views/add_existing_form.html.erb
173
173
  - frontends/default/views/create.html.erb
174
- - frontends/default/views/delete.html.erb
175
- - frontends/default/views/list.html.erb
176
- - frontends/default/views/edit_associated.js.rjs
174
+ - frontends/default/views/_human_conditions.html.erb
175
+ - frontends/default/views/_render_field.js.rjs
177
176
  - frontends/default/views/field_search.html.erb
178
- - frontends/default/views/form_messages.js.rjs
177
+ - frontends/default/views/add_existing.js.rjs
179
178
  - frontends/default/views/search.html.erb
180
- - frontends/default/views/list.js.rjs
179
+ - frontends/default/views/destroy.js.rjs
181
180
  - frontends/default/views/update.html.erb
181
+ - frontends/default/views/_list_pagination.html.erb
182
+ - frontends/default/views/_list_record_columns.html.erb
183
+ - frontends/default/views/show.html.erb
184
+ - frontends/default/views/_list_with_header.html.erb
185
+ - frontends/default/views/_search_attribute.html.erb
186
+ - frontends/default/views/action_confirmation.html.erb
187
+ - frontends/default/views/edit_associated.js.rjs
188
+ - frontends/default/views/form_messages.js.rjs
182
189
  - frontends/default/views/on_action_update.js.rjs
183
190
  - frontends/default/views/on_create.js.rjs
184
191
  - frontends/default/views/on_mark_all.js.rjs
185
- - frontends/default/views/show.html.erb
186
192
  - frontends/default/views/on_update.js.rjs
187
193
  - frontends/default/views/render_field.js.rjs
188
194
  - frontends/default/views/update_column.js.rjs
189
195
  - frontends/default/views/update_row.js.rjs
190
- - frontends/default/views/_action_group.html.erb
191
- - frontends/default/views/_base_form.html.erb
192
- - frontends/default/views/_human_conditions.html.erb
193
- - frontends/default/views/_list_with_header.html.erb
194
- - frontends/default/views/_row.html.erb
195
- - frontends/default/views/_search_attribute.html.erb
196
- - frontends/default/views/action_confirmation.html.erb
197
196
  - frontends/default/views/_base_form.html.erb~
198
- - frontends/default/views/_horizontal_subform_header.html.erb~
199
- - frontends/default/views/_form_association_footer.html.erb~
197
+ - frontends/default/views/_form.html.erb~
198
+ - frontends/default/views/_row.html.erb~
199
+ - frontends/default/views/render_field.js.erb~
200
200
  - frontends/default/views/_horizontal_subform_record.html.erb~
201
+ - frontends/default/views/_form_association_footer.html.erb~
202
+ - frontends/default/views/edit_associated.js.erb~
203
+ - frontends/default/views/_list_inline_adapter.html.erb~
204
+ - frontends/default/views/_form_association.html.erb~
205
+ - frontends/default/views/_vertical_subform.html.erb~
206
+ - frontends/default/views/_horizontal_subform.html.erb~
207
+ - frontends/default/views/_horizontal_subform_header.html.erb~
208
+ - frontends/default/views/_list_pagination.html.erb~
209
+ - frontends/default/views/_list_actions.html.erb~
210
+ - frontends/default/views/_list_pagination_links.html.erb~
211
+ - frontends/default/views/_list_messages.html.erb~
212
+ - frontends/default/views/_render_field.js.erb~
213
+ - frontends/default/views/_action_group.html.erb~
201
214
  - lib/active_scaffold.rb
202
215
  - lib/active_scaffold_env.rb
203
- - lib/active_scaffold/actions/common_search.rb
204
216
  - lib/active_scaffold/actions/core.rb
205
217
  - lib/active_scaffold/actions/create.rb
206
218
  - lib/active_scaffold/actions/delete.rb
207
219
  - lib/active_scaffold/actions/field_search.rb
208
220
  - lib/active_scaffold/actions/list.rb
209
- - lib/active_scaffold/actions/mark.rb
221
+ - lib/active_scaffold/actions/common_search.rb
222
+ - lib/active_scaffold/actions/show.rb
210
223
  - lib/active_scaffold/actions/nested.rb
211
224
  - lib/active_scaffold/actions/search.rb
212
- - lib/active_scaffold/actions/show.rb
225
+ - lib/active_scaffold/actions/mark.rb
213
226
  - lib/active_scaffold/actions/subform.rb
214
227
  - lib/active_scaffold/actions/update.rb
215
228
  - lib/active_scaffold/actions/core.rb~
229
+ - lib/active_scaffold/actions/nested.rb~
230
+ - lib/active_scaffold/actions/update.rb~
231
+ - lib/active_scaffold/actions/create.rb~
232
+ - lib/active_scaffold/actions/list.rb~
233
+ - lib/active_scaffold/actions/subform.rb~
234
+ - lib/active_scaffold/actions/search.rb~
216
235
  - lib/active_scaffold/attribute_params.rb
217
236
  - lib/active_scaffold/config/base.rb
218
237
  - lib/active_scaffold/config/core.rb
@@ -227,6 +246,8 @@ files:
227
246
  - lib/active_scaffold/config/subform.rb
228
247
  - lib/active_scaffold/config/update.rb
229
248
  - lib/active_scaffold/config/mark.rb
249
+ - lib/active_scaffold/config/search.rb~
250
+ - lib/active_scaffold/config/nested.rb~
230
251
  - lib/active_scaffold/configurable.rb
231
252
  - lib/active_scaffold/constraints.rb
232
253
  - lib/active_scaffold/data_structures/action_columns.rb
@@ -239,6 +260,9 @@ files:
239
260
  - lib/active_scaffold/data_structures/set.rb
240
261
  - lib/active_scaffold/data_structures/sorting.rb
241
262
  - lib/active_scaffold/data_structures/nested_info.rb
263
+ - lib/active_scaffold/data_structures/action_columns.rb~
264
+ - lib/active_scaffold/data_structures/action_link.rb~
265
+ - lib/active_scaffold/data_structures/nested_info.rb~
242
266
  - lib/active_scaffold/finder.rb
243
267
  - lib/active_scaffold/helpers/association_helpers.rb
244
268
  - lib/active_scaffold/helpers/controller_helpers.rb
@@ -250,7 +274,13 @@ files:
250
274
  - lib/active_scaffold/helpers/search_column_helpers.rb
251
275
  - lib/active_scaffold/helpers/show_column_helpers.rb
252
276
  - lib/active_scaffold/helpers/human_condition_helpers.rb
277
+ - lib/active_scaffold/helpers/controller_helpers.rb~
278
+ - lib/active_scaffold/helpers/view_helpers.rb~
279
+ - lib/active_scaffold/helpers/form_column_helpers.rb~
280
+ - lib/active_scaffold/helpers/id_helpers.rb~
281
+ - lib/active_scaffold/helpers/list_column_helpers.rb~
253
282
  - lib/active_scaffold/helpers/search_column_helpers.rb~
283
+ - lib/active_scaffold/active_record_permissions.rb
254
284
  - lib/active_scaffold/locale/de.yml
255
285
  - lib/active_scaffold/locale/en.yml
256
286
  - lib/active_scaffold/locale/es.yml
@@ -258,8 +288,6 @@ files:
258
288
  - lib/active_scaffold/locale/hu.yml
259
289
  - lib/active_scaffold/locale/ja.yml
260
290
  - lib/active_scaffold/locale/ru.yml
261
- - lib/active_scaffold/marked_model.rb
262
- - lib/active_scaffold/active_record_permissions.rb
263
291
  - lib/active_scaffold/bridges/ancestry/bridge.rb
264
292
  - lib/active_scaffold/bridges/ancestry/lib/ancestry_bridge.rb
265
293
  - lib/active_scaffold/bridges/bridge.rb
@@ -277,14 +305,11 @@ files:
277
305
  - lib/active_scaffold/bridges/date_picker/bridge.rb
278
306
  - lib/active_scaffold/bridges/date_picker/lib/datepicker_bridge.rb
279
307
  - lib/active_scaffold/bridges/date_picker/public/javascripts/date_picker_bridge.js
280
- - lib/active_scaffold/bridges/file_column/bridge.rb
281
- - lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb
282
- - lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb
283
- - lib/active_scaffold/bridges/file_column/lib/form_ui.rb
284
- - lib/active_scaffold/bridges/file_column/lib/list_ui.rb
285
- - lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb
286
- - lib/active_scaffold/bridges/file_column/test/mock_model.rb
287
- - lib/active_scaffold/bridges/file_column/test/test_helper.rb
308
+ - lib/active_scaffold/bridges/dragonfly/bridge.rb
309
+ - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb
310
+ - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb
311
+ - lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb
312
+ - lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb
288
313
  - lib/active_scaffold/bridges/paperclip/bridge.rb
289
314
  - lib/active_scaffold/bridges/paperclip/lib/form_ui.rb
290
315
  - lib/active_scaffold/bridges/paperclip/lib/list_ui.rb
@@ -292,28 +317,27 @@ files:
292
317
  - lib/active_scaffold/bridges/paperclip/lib/paperclip_bridge_helpers.rb
293
318
  - lib/active_scaffold/bridges/semantic_attributes/bridge.rb
294
319
  - lib/active_scaffold/bridges/semantic_attributes/lib/semantic_attributes_bridge.rb
295
- - lib/active_scaffold/bridges/shared/date_bridge.rb
296
320
  - lib/active_scaffold/bridges/tiny_mce/bridge.rb
297
321
  - lib/active_scaffold/bridges/tiny_mce/lib/tiny_mce_bridge.rb
298
- - lib/active_scaffold/bridges/record_select/bridge.rb
299
- - lib/active_scaffold/bridges/record_select/lib/record_select_bridge.rb
300
- - lib/active_scaffold/bridges/record_select/lib/record_select_bridge.rb~
301
322
  - lib/active_scaffold/bridges/validation_reflection/bridge.rb
302
323
  - lib/active_scaffold/bridges/validation_reflection/lib/validation_reflection_bridge.rb
303
- - lib/active_scaffold/bridges/dragonfly/bridge.rb
304
- - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb
305
- - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb
306
- - lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb
307
- - lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb
308
- - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge_helpers.rb~
309
- - lib/active_scaffold/bridges/dragonfly/lib/dragonfly_bridge.rb~
310
- - lib/active_scaffold/bridges/dragonfly/lib/list_ui.rb~
311
- - lib/active_scaffold/bridges/dragonfly/lib/form_ui.rb~
312
- - lib/active_scaffold/bridges/dragonfly/bridge.rb~
324
+ - lib/active_scaffold/bridges/file_column/bridge.rb
325
+ - lib/active_scaffold/bridges/file_column/lib/as_file_column_bridge.rb
326
+ - lib/active_scaffold/bridges/file_column/lib/file_column_helpers.rb
327
+ - lib/active_scaffold/bridges/file_column/lib/form_ui.rb
328
+ - lib/active_scaffold/bridges/file_column/lib/list_ui.rb
329
+ - lib/active_scaffold/bridges/file_column/test/functional/file_column_keep_test.rb
330
+ - lib/active_scaffold/bridges/file_column/test/mock_model.rb
331
+ - lib/active_scaffold/bridges/file_column/test/test_helper.rb
332
+ - lib/active_scaffold/bridges/record_select/bridge.rb
333
+ - lib/active_scaffold/bridges/record_select/lib/record_select_bridge.rb
334
+ - lib/active_scaffold/bridges/record_select/helpers.rb~
335
+ - lib/active_scaffold/bridges/shared/date_bridge.rb
336
+ - lib/active_scaffold/bridges/shared/date_bridge.rb~
313
337
  - lib/active_scaffold/version.rb
338
+ - lib/active_scaffold/marked_model.rb
314
339
  - lib/active_scaffold/extensions/action_controller_rendering.rb
315
340
  - lib/active_scaffold/extensions/action_view_rendering.rb
316
- - lib/active_scaffold/extensions/action_view_resolver.rb
317
341
  - lib/active_scaffold/extensions/active_association_reflection.rb
318
342
  - lib/active_scaffold/extensions/active_record_offset.rb
319
343
  - lib/active_scaffold/extensions/array.rb
@@ -327,9 +351,18 @@ files:
327
351
  - lib/active_scaffold/extensions/unsaved_associated.rb
328
352
  - lib/active_scaffold/extensions/unsaved_record.rb
329
353
  - lib/active_scaffold/extensions/usa_state.rb
354
+ - lib/active_scaffold/extensions/action_view_resolver.rb
355
+ - lib/active_scaffold/extensions/action_controller_rendering.rb~
356
+ - lib/active_scaffold/extensions/action_view_rendering.rb~
357
+ - lib/active_scaffold/extensions/cache_association.rb~
358
+ - lib/active_scaffold/extensions/reverse_associations.rb~
359
+ - lib/active_scaffold/extensions/routing_mapper.rb~
360
+ - lib/active_scaffold/extensions/unsaved_associated.rb~
330
361
  - lib/active_scaffold/paginator.rb
331
362
  - lib/active_scaffold/responds_to_parent.rb
332
- - lib/active_scaffold_assets.rb
363
+ - lib/active_scaffold/attribute_params.rb~
364
+ - lib/active_scaffold/finder.rb~
365
+ - lib/active_scaffold/constraints.rb~
333
366
  - lib/generators/active_scaffold/USAGE
334
367
  - lib/generators/active_scaffold/active_scaffold_generator.rb
335
368
  - lib/generators/active_scaffold_controller/USAGE
@@ -338,6 +371,8 @@ files:
338
371
  - lib/generators/active_scaffold_controller/templates/helper.rb
339
372
  - lib/generators/active_scaffold_setup/USAGE
340
373
  - lib/generators/active_scaffold_setup/active_scaffold_setup_generator.rb
374
+ - lib/active_scaffold_assets.rb
375
+ - lib/active_scaffold.rb~
341
376
  - public/blank.html
342
377
  - shoulda_macros/macros.rb
343
378
  - MIT-LICENSE
@@ -410,7 +445,6 @@ files:
410
445
  - test/model_stub.rb
411
446
  - test/run_all.rb
412
447
  - test/test_helper.rb
413
- has_rdoc: true
414
448
  homepage: http://activescaffold.com
415
449
  licenses:
416
450
  - MIT
@@ -440,7 +474,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
440
474
  requirements: []
441
475
 
442
476
  rubyforge_project:
443
- rubygems_version: 1.5.2
477
+ rubygems_version: 1.8.10
444
478
  signing_key:
445
479
  specification_version: 3
446
480
  summary: Rails 3 Version of activescaffold supporting prototype and jquery
@@ -1,12 +0,0 @@
1
- ActiveScaffold::Bridges.bridge "Paperclip" do
2
- install do
3
- if ActiveScaffold::Config::Core.instance_methods.include?("initialize_with_paperclip")
4
- raise RuntimeError, "We've detected that you have active_scaffold_paperclip_bridge installed. This plugin has been moved to core. Please remove active_scaffold_paperclip_bridge to prevent any conflicts"
5
- end
6
- require File.join(File.dirname(__FILE__), "lib/form_ui")
7
- require File.join(File.dirname(__FILE__), "lib/list_ui")
8
- require File.join(File.dirname(__FILE__), "lib/paperclip_bridge_helpers")
9
- require File.join(File.dirname(__FILE__), "lib/paperclip_bridge")
10
- ActiveScaffold::Config::Core.send :include, ActiveScaffold::Bridges::Paperclip::Lib::PaperclipBridge
11
- end
12
- end
@@ -1,36 +0,0 @@
1
- module ActiveScaffold
2
- module Bridges
3
- module Dragonfly
4
- module Lib
5
- module DragonflyBridge
6
- def initialize_with_dragonfly(model_id)
7
- initialize_without_dragonfly(model_id)
8
- return unless self.model.respond_to?(:dragonfly_attachment_classes) && self.model.dragonfly_attachment_classes.present?
9
-
10
- self.update.multipart = true
11
- self.create.multipart = true
12
-
13
- self.model.dragonfly_attachment_classes.each do |attachment|
14
- configure_dragonfly_field(attachment.attribute)
15
- end
16
- end
17
-
18
- def self.included(base)
19
- base.alias_method_chain :initialize, :dragonfly
20
- end
21
-
22
- private
23
- def configure_dragonfly_field(field)
24
- self.columns << field
25
- self.columns[field].form_ui ||= :dragonfly
26
- self.columns[field].params.add "delete_#{field}"
27
-
28
- [:name, :uid].each do |f|
29
- self.columns.exclude("#{field}_#{f}".to_sym)
30
- end
31
- end
32
- end
33
- end
34
- end
35
- end
36
- end
@@ -1,12 +0,0 @@
1
- module ActiveScaffold
2
- module Bridges
3
- module Dragonfly
4
- module Lib
5
- module DragonflyBridgeHelpers
6
- mattr_accessor :thumbnail_style
7
- self.thumbnail_style = :thumbnail
8
- end
9
- end
10
- end
11
- end
12
- end
@@ -1,27 +0,0 @@
1
- module ActiveScaffold
2
- module Helpers
3
- module FormColumnHelpers
4
- def active_scaffold_input_dragonfly(column, options)
5
- options = active_scaffold_input_text_options(options)
6
- input = file_field(:record, column.name, options)
7
- dragonfly = @record.send("#{column.name}")
8
- if dragonfly && dragonfly.file?
9
- if ActiveScaffold.js_framework == :jquery
10
- js_remove_file_code = "$(this).prev().val('true'); $(this).parent().hide().next().show(); return false;";
11
- else
12
- js_remove_file_code = "$(this).previous().value='true'; $(this).up().hide().next().show(); return false;";
13
- end
14
-
15
- content = active_scaffold_column_dragonfly(column, @record)
16
- content_tag(:div,
17
- content + " | " +
18
- hidden_field(:record, "remove_#{column.name}", :value => "false") +
19
- content_tag(:a, as_(:remove_file), {:href => '#', :onclick => js_remove_file_code})
20
- ) + content_tag(:div, input, :style => "display: none")
21
- else
22
- input
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,16 +0,0 @@
1
- module ActiveScaffold
2
- module Helpers
3
- module ListColumnHelpers
4
- def active_scaffold_column_dragonfly(column, record)
5
- attachment = record.send("#{column.name}")
6
- return nil unless attachment.present?
7
- content = if attachment.image?
8
- image_tag(attachment.thumb(ActiveScaffold::Bridges::Dragonfly::Lib::DragonflyBridgeHelpers.thumbnail_style).url, :border => 0)
9
- else
10
- attachment.name
11
- end
12
- link_to(content, attachment.remote_url, {'data-popup' => true, :target => '_blank'})
13
- end
14
- end
15
- end
16
- end