searchlogic 2.5.3 → 2.5.4

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/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 5
4
- :patch: 3
4
+ :patch: 4
5
5
  :build:
@@ -69,7 +69,11 @@ module Searchlogic
69
69
  def fields_for(*args, &block)
70
70
  if search_obj = args.find { |arg| arg.is_a?(Searchlogic::Search) }
71
71
  args.unshift(:search) if args.first == search_obj
72
- concat(content_tag("div", hidden_field_tag("#{args.first}[order]", search_obj.order)))
72
+ options = args.extract_options!
73
+ if !options[:skip_order_field]
74
+ concat(content_tag("div", hidden_field_tag("#{args.first}[order]", search_obj.order)))
75
+ end
76
+ args << options
73
77
  super
74
78
  else
75
79
  super
data/searchlogic.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{searchlogic}
8
- s.version = "2.5.3"
8
+ s.version = "2.5.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ben Johnson of Binary Logic"]
12
- s.date = %q{2011-03-09}
12
+ s.date = %q{2011-03-10}
13
13
  s.description = %q{Searchlogic makes using ActiveRecord named scopes easier and less repetitive.}
14
14
  s.email = %q{bjohnson@binarylogic.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: searchlogic
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.5.3
5
+ version: 2.5.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ben Johnson of Binary Logic
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-09 00:00:00 -05:00
13
+ date: 2011-03-10 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -104,7 +104,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
105
  - - ">="
106
106
  - !ruby/object:Gem::Version
107
- hash: -3818165968683800774
107
+ hash: 2792229626031075775
108
108
  segments:
109
109
  - 0
110
110
  version: "0"