searchlogic 2.4.16 → 2.4.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -2,4 +2,4 @@
2
2
  :major: 2
3
3
  :build:
4
4
  :minor: 4
5
- :patch: 16
5
+ :patch: 17
@@ -99,7 +99,7 @@ module Searchlogic
99
99
 
100
100
  # Returns the column we are currently ordering by
101
101
  def ordering_by
102
- order && order.gsub(/^(ascend|descend)_by_/, '')
102
+ order && order.to_s.gsub(/^(ascend|descend)_by_/, '')
103
103
  end
104
104
 
105
105
  private
data/searchlogic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{searchlogic}
8
- s.version = "2.4.16"
8
+ s.version = "2.4.17"
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"]
@@ -350,6 +350,11 @@ describe Searchlogic::Search do
350
350
  search = User.search(:order => "descend_by_first_name")
351
351
  search.ordering_by.should == "first_name"
352
352
  end
353
+
354
+ it "should handle symbols" do
355
+ search = User.search(:order => :descend_by_first_name)
356
+ search.ordering_by.should == "first_name"
357
+ end
353
358
  end
354
359
 
355
360
  context "#method_missing" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 4
8
- - 16
9
- version: 2.4.16
8
+ - 17
9
+ version: 2.4.17
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Johnson of Binary Logic