Skip to content

Commit

Permalink
upgrade to rails 3.1.0.rc4, remove call to deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
evdevdev committed Jul 23, 2011
1 parent 2a960db commit 18be329
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source 'http://rubygems.org'
gem 'rails', :git => "https://github.com/rails/rails.git"
gem 'rails', "~> 3.1.0.rc4"
gem "sqlite3-ruby", "~> 1.3.1", :require => 'sqlite3'
gem "arel", :git => "git://github.com/rails/arel.git"
gemspec
2 changes: 1 addition & 1 deletion lib/seed-fu/seeder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def seed_record(data)

puts " - #{@model_class} #{data.inspect}" unless @options[:quiet]

record.send(:attributes=, data, false)
record.send(:assign_attributes, data, :without_protection => true)
record.save(:validate => false) || raise(ActiveRecord::RecordNotSaved)
record
end
Expand Down
4 changes: 2 additions & 2 deletions seed-fu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |s|
s.summary = "Easily manage seed data in your Active Record application"
s.description = "Seed Fu is an attempt to once and for all solve the problem of inserting and maintaining seed data in a database. It uses a variety of techniques gathered from various places around the web and combines them to create what is hopefully the most robust seed data system around."

s.add_dependency "activerecord", "~> 3.1.0.beta"
s.add_dependency "activesupport", "~> 3.1.0.beta"
s.add_dependency "activerecord", "~> 3.1.0.rc4"
s.add_dependency "activesupport", "~> 3.1.0.rc4"

s.add_development_dependency "rspec", "~> 2.0"
s.add_development_dependency "pg"
Expand Down

0 comments on commit 18be329

Please sign in to comment.