ajax_scaffold_generator 3.1.10 → 3.1.11

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+
2
+ 3.1.11 ========
3
+
4
+ * Patched rico_corner.js to no longer touch Object.prototype.extend which was causing the new version of
5
+ Prototype (1.5.0) to choke on making Ajax requests, quite unfortunate.
6
+ * Changed usage of m.template for asset copying to m.file
7
+
1
8
  3.1.10 ========
2
9
 
3
10
  * Fixed bug with :class_name attribute being ignored
@@ -141,14 +141,14 @@ class AjaxScaffoldGenerator < ScaffoldGenerator
141
141
  controller_class_path,
142
142
  "#{controller_file_name}.rhtml")
143
143
 
144
- m.template 'ajax_scaffold.css', "public/stylesheets/ajax_scaffold.css"
144
+ m.file 'ajax_scaffold.css', "public/stylesheets/ajax_scaffold.css"
145
145
 
146
146
  scaffold_javascripts.each do |javascript|
147
- m.template javascript, "public/javascripts/#{javascript}"
147
+ m.file javascript, "public/javascripts/#{javascript}"
148
148
  end
149
149
 
150
150
  scaffold_images.each do |image|
151
- m.template image, "public/images/#{image}"
151
+ m.file image, "public/images/#{image}"
152
152
  end
153
153
 
154
154
  end
@@ -117,9 +117,9 @@ Rico.Color.prototype = {
117
117
 
118
118
  Rico.Color.createFromHex = function(hexCode) {
119
119
  if(hexCode.length==4) {
120
- var shortHexCode = hexCode;
120
+ var shortHexCode = hexCode;
121
121
  var hexCode = '#';
122
- for(var i=1;i<4;i++) hexCode += (shortHexCode.charAt(i) +
122
+ for(var i=1;i<4;i++) hexCode += (shortHexCode.charAt(i) +
123
123
  shortHexCode.charAt(i));
124
124
  }
125
125
  if ( hexCode.indexOf('#') == 0 )
@@ -484,6 +484,11 @@ Rico.Corner = {
484
484
 
485
485
  //-------------------- ricoUtil.js
486
486
  Rico.ArrayExtensions = new Array();
487
+ /*
488
+ rrwhite 1.25.2007 - Removing this since it conflicts with the new version of
489
+ Prototype (1.5.0) and effectively kills all AJAX calls (bummer). This call
490
+ appears to be something that only the larger Rico library needs and doesn't
491
+ need to be in the corners abstraction at all.
487
492
 
488
493
  if (Object.prototype.extend) {
489
494
  // in prototype.js...
@@ -494,6 +499,7 @@ if (Object.prototype.extend) {
494
499
  }
495
500
  Rico.ArrayExtensions[ Rico.ArrayExtensions.length ] = Object.prototype.extend;
496
501
  }
502
+ */
497
503
 
498
504
  if (Array.prototype.push) {
499
505
  // in prototype.js...
@@ -635,7 +641,7 @@ var RicoUtil = {
635
641
  },
636
642
 
637
643
  getContentAsString: function( parentNode ) {
638
- return parentNode.xml != undefined ?
644
+ return parentNode.xml != undefined ?
639
645
  this._getContentAsStringIE(parentNode) :
640
646
  this._getContentAsStringMozilla(parentNode);
641
647
  },
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: ajax_scaffold_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 3.1.10
7
- date: 2006-09-19 00:00:00 -06:00
6
+ version: 3.1.11
7
+ date: 2007-01-25 00:00:00 -08:00
8
8
  summary: Ajax scaffold generator is a rails generator for ajaxified scaffolds
9
9
  require_paths:
10
10
  - lib