Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

present? instead of any?

  • Loading branch information...
commit 8b20c0e6aa74c7e36f031c7866e9f4fbc6ec3062 1 parent 6627ee3
@eladmeidar authored
View
2  lib/indexer.rb
@@ -132,7 +132,7 @@ def self.scan_finds
primary_key = model_name.constantize.primary_key
@indexes_required[table_name] += [primary_key] unless @indexes_required[table_name].include?(primary_key)
- if column_names.any?
+ if column_names.present?
column_names = column_names.split('_and_')
# remove find_by_sql references.
View
3  test/fixtures/app/controllers/users_controller.rb
@@ -2,6 +2,7 @@ class UsersController < ActionController::Base
def index
- @users = Freelancer.find_all_by_name(param[:name])
+ @freelancer = Freelancer.find_all_by_name(param[:name])
+ @user = User.find(1)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.