Permalink
Browse files

An admin user is now created when running the sandbox rake task

  • Loading branch information...
LBRapid committed Oct 2, 2012
1 parent d29c084 commit 7ea065954efaf7cdd9803465ffcbf3e4f3bf6d78
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sandbox.sh
View
@@ -7,3 +7,4 @@ echo "gem 'spree', :path => '..'\n" >> Gemfile
echo "gem 'spree_auth_devise', :git => 'git://github.com/devilcoders/spree_auth_devise'\n" >> Gemfile
bundle install --gemfile Gemfile
rails g spree:install --auto-accept --user_class=Spree::User
+bundle exec rake spree_auth:admin:create

3 comments on commit 7ea0659

@LBRapid

This comment has been minimized.

Show comment Hide comment
@LBRapid

LBRapid Oct 2, 2012

Member

@radar It looks like there is a fix in @devilcoders fork of spree_auth_devise that fixes an issue I am getting when trying to create an admin on 1-2-stable.

Create the admin user (press enter for defaults).
Email [spree@example.com]: 
Password [spree123]: 
rake aborted!
undefined method `password_salt=' for #<Spree::User:0x007fc2ae2b7b40>

Tasks: TOP => spree_auth:admin:create
(See full trace by running task with --trace)

I think we should probably port this fix/change to spree/spree_auth_devise at some point and this change to 1-2-stable, but I wanted to check with you first on this. I assume that the changes done on @devilcoders fork will eventually be merged into spree/spree_auth_devise.

Member

LBRapid replied Oct 2, 2012

@radar It looks like there is a fix in @devilcoders fork of spree_auth_devise that fixes an issue I am getting when trying to create an admin on 1-2-stable.

Create the admin user (press enter for defaults).
Email [spree@example.com]: 
Password [spree123]: 
rake aborted!
undefined method `password_salt=' for #<Spree::User:0x007fc2ae2b7b40>

Tasks: TOP => spree_auth:admin:create
(See full trace by running task with --trace)

I think we should probably port this fix/change to spree/spree_auth_devise at some point and this change to 1-2-stable, but I wanted to check with you first on this. I assume that the changes done on @devilcoders fork will eventually be merged into spree/spree_auth_devise.

@radar

This comment has been minimized.

Show comment Hide comment
@radar

radar Oct 3, 2012

Member

@LBRapid: Can you pinpoint the exact fix?

Member

radar replied Oct 3, 2012

@LBRapid: Can you pinpoint the exact fix?

@LBRapid

This comment has been minimized.

Show comment Hide comment
@LBRapid

LBRapid Oct 3, 2012

Member

Hmm, it would seem I didn't look close enough at what the fork had changed. Nothing there would be fixing/breaking this. I'll look a bit closer at the differences between master and 1-2-stable and see if I can figure out why I'm seeing this.

Member

LBRapid replied Oct 3, 2012

Hmm, it would seem I didn't look close enough at what the fork had changed. Nothing there would be fixing/breaking this. I'll look a bit closer at the differences between master and 1-2-stable and see if I can figure out why I'm seeing this.

Please sign in to comment.