Skip to content

Version 2.3.6 does not work in Rails 3.2 #115

Open

Description

@ryu39

I find that latest version 2.3.6 does not work in Rails 3.2.

In Rails 3.2 environment, bundle exec rake db:seed_fu is failed with 'ArgumentError: wrong number of arguments (given 0, expected 1)...'.
The previous version 2.3.5 works fine.

Here is reproduction script(bash).

gem install rails -v 3.2.22.5

rails _3.2.22.5_ new test_seed_fu
cd test_seed_fu

cat << EOS >> Gemfile
group :development do
  gem 'seed-fu', '2.3.6'
end
EOS

bundle install

script/rails g model User name:string age:integer
bundle exec rake db:migrate

mkdir -p db/fixtures/development
cat << EOS > db/fixtures/development/users.rb
User.seed(:name) do |u|
  u.name = 'User Name'
  u.age = 20
end
EOS

bundle exec rake db:seed_fu
# => rake aborted! ArgumentError: wrong number of arguments (given 0, expected 1) ...

script/rails r "User.seed(:name, name: 'User Name', age: 20)"
# => wrong number of arguments (given 0, expected 1) (ArgumentError) ..

Activity

  1. ryu39 commented on Oct 16, 2016

    @ryu39
    Author

    I send PR Pull #116 for this issues. Please check it.
    Thanks.

  2. joshuapinter commented on Nov 12, 2016

    @joshuapinter
    Contributor

    @ryu39 Yes, thank you for this. I ran into this after updating my gems and was wondering what was going on because it's just a patch release between my old version of 2.3.4 and the new version of 2.3.6.

    I just reverted to 2.3.4 but thanks for reporting the issue and submitting a PR to the owner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions