Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seanlinsley committed Dec 29, 2017
1 parent 0cd160c commit d5ea5ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ransack/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize
@sorted_names_with_underscores = []
end

delegate :[], :keys, to: :@collection
delegate :[], :keys, :has_key?, to: :@collection

def []=(key, value)
@sorted_names_with_underscores << [key, '_' + key]
Expand Down
2 changes: 1 addition & 1 deletion lib/ransack/nodes/grouping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def read_attribute(name)
end

def strip_predicate_and_index(str)
string = str[/(.+?)\(/, 1] || str
string = str[/(.+?)\(/, 1] || str.dup
Predicate.detect_and_strip_from_string!(string)
string
end
Expand Down

0 comments on commit d5ea5ce

Please sign in to comment.