Commit 948d639a3dd06c33da8fadb3de40a9b1af644aef

Authored by Braulio Bhavamitra
1 parent b587b9b9
Exists in rails5

rails5: drop find(:all) and find(:first)

plugins/solr/lib/acts_as_searchable.rb
@@ -74,7 +74,7 @@ module ActsAsSearchable @@ -74,7 +74,7 @@ module ActsAsSearchable
74 db_options[:conditions] = "#{table_name}.id in (#{ids.join(', ')})" 74 db_options[:conditions] = "#{table_name}.id in (#{ids.join(', ')})"
75 end 75 end
76 76
77 - results = find(:all, db_options) 77 + results = all db_options
78 end 78 end
79 end 79 end
80 80
test/unit/product_test.rb
@@ -404,7 +404,7 @@ class ProductTest < ActiveSupport::TestCase @@ -404,7 +404,7 @@ class ProductTest < ActiveSupport::TestCase
404 404
405 env_production_cost = fast_create(ProductionCost, :owner_id => ent.environment.id, :owner_type => 'Environment') 405 env_production_cost = fast_create(ProductionCost, :owner_id => ent.environment.id, :owner_type => 'Environment')
406 ent_production_cost = fast_create(ProductionCost, :owner_id => ent.id, :owner_type => 'Profile') 406 ent_production_cost = fast_create(ProductionCost, :owner_id => ent.id, :owner_type => 'Profile')
407 - create(PriceDetail, :product => product, :production_cost => env_production_cost, :product => product) 407 + create(PriceDetail, product: product, production_cost: env_production_cost)
408 assert_equal [env_production_cost, ent_production_cost], product.available_production_costs 408 assert_equal [env_production_cost, ent_production_cost], product.available_production_costs
409 end 409 end
410 410