scaffolding_extensions 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -24,11 +24,11 @@ Scaffolding Extensions currently supports:
24
24
  * Rails 2.1
25
25
  * Ramaze 2008.06
26
26
  * Camping 1.5
27
- * Sinatra 0.2.2
27
+ * Sinatra 0.3.1
28
28
  * Object/Relational Mappers
29
29
  * ActiveRecord 2.1
30
30
  * DataMapper 0.3.1
31
- * Sequel 2.2.0
31
+ * Sequel 2.5.0
32
32
  * Javascript Libaries (used for Ajax/Autocompleting)
33
33
  * Prototype 1.6.0.1
34
34
  * JQuery 1.2.3
@@ -430,7 +430,7 @@ module ScaffoldingExtensions::MetaModel
430
430
  # Returns a completely blank object suitable for searching, updated with the given attributes.
431
431
  def scaffold_search_object(attributes = {})
432
432
  object = new
433
- scaffold_attributes(:search).each{|field| object.send("#{field}=", nil)}
433
+ scaffold_attributes(:search).each{|field| object.send("#{field}=", nil) unless object.send(field) == nil}
434
434
  scaffold_set_attributes(object, attributes)
435
435
  object
436
436
  end
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.1.9
4
+ version: 1.2.0
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: 2008-08-08 00:00:00 -07:00
12
+ date: 2008-09-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15