Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

latest

  • Loading branch information...
commit 4d1e20b2ca5121fea9a05107aeb191e196742b03 1 parent 2eaffbe
James Vanneman authored
1  .ruby-version
View
@@ -0,0 +1 @@
+1.9.3-p327
8 lib/searchlogic/scope_reflection_ext/class_level_methods.rb
View
@@ -1,14 +1,6 @@
module Searchlogic
module ScopeReflectionExt
module ClassLevelMethods
- def method
- @method
- end
-
- def method=(method)
- @method = method
- end
-
def authorized?(method)
new(method).authorized?
end
2  lib/searchlogic/scope_reflection_ext/instance_methods.rb
View
@@ -12,8 +12,8 @@ def authorized?
end
def predicate
- return nil if /#{joined_named_scopes}$/ =~ method && joined_named_scopes
return Alias.match(method)[1] if Alias.match(method)
+ return nil if /#{joined_named_scopes}$/ =~ method && joined_named_scopes
begin
/(#{searchlogic_methods.sort_by(&:size).reverse.join("|")})_(any|all)$/.match(method).try(:[], 0) || /(#{searchlogic_methods.sort_by(&:size).reverse.join("|")})$/.match(method)[0]
rescue NoMethodError => e
2  lib/searchlogic/scope_reflection_ext/searchlogic_conditions.rb
View
@@ -4,7 +4,7 @@ module SearchlogicConditions
# def searchlogic_methods
##This Method is dynamically defined in the Conditions module
##That way you can add conditions and matchers without having to
- ## update any code class
+ ## update any code in this class
# end
end
end
2  lib/searchlogic/search.rb
View
@@ -1,7 +1,7 @@
require File.dirname(__FILE__) + '/search_ext.rb'
module Searchlogic
- class Search #< BasicObject
+ class Search < BasicObject
include SearchExt
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.