Permalink
Browse files

Remove deprecated stuff

  • Loading branch information...
1 parent 5ffb338 commit 900bbbacf0e5c9290b2a9f8f225a0ded413db458 @jonleighton jonleighton committed Oct 4, 2011
Showing with 0 additions and 16 deletions.
  1. +0 −6 lib/seed-fu/active_record_extension.rb
  2. +0 −5 lib/tasks/seed_fu.rake
  3. +0 −5 spec/seeder_spec.rb
@@ -44,12 +44,6 @@ def seed_once(*args, &block)
SeedFu::Seeder.new(self, constraints, data, :insert_only => true).seed
end
- # @deprecated Use {#seed} instead
- def seed_many(*args, &block)
- puts "DEPRECATED: Model.seed_many is deprecated. You can now use Model.seed in exactly the same way." unless SeedFu.quiet
- seed(*args, &block)
- end
-
private
def parse_seed_fu_args(args, block)
View
@@ -25,11 +25,6 @@ namespace :db do
rake db:seed FIXTURE_PATH=features/fixtures
EOS
task :seed_fu => :environment do
- if ENV["SEED"]
- puts "DEPRECATED: The SEED option to db:seed_fu is deprecated. Please use FILTER instead."
- ENV["FILTER"] = ENV["SEED"]
- end
-
if ENV["FILTER"]
filter = /#{ENV["FILTER"].gsub(/,/, "|")}/
end
View
@@ -65,11 +65,6 @@
SeededModel.find_by_login("harry").first_name.should == "Harry"
end
- it "should alias seed as seed_many (deprecated)" do
- SeededModel.seed_many(:id => 2, :title => "Foo")
- SeededModel.find(2).title.should == "Foo"
- end
-
it "should update, not create, if constraints are met" do
SeededModel.seed(:id) do |s|
s.id = 1

0 comments on commit 900bbba

Please sign in to comment.