Skip to content

Commit

Permalink
update 'seed_database' recipe to support mongoid with 'Time.now.utc' …
Browse files Browse the repository at this point in the history
…instead of 'DateTime.now'
  • Loading branch information
DanielKehoe committed Apr 2, 2012
1 parent 4fd718b commit 1413cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.textile
Expand Up @@ -7,6 +7,7 @@ h2. 1.4.1 April 2, 2012
* update 'extras' recipe to run 'rails-footnotes' generator when selected (contributed by Peter Fern)
* update 'devise' recipe to use Devise 2.0.4 when devise_invitable is selected (pending fix to devise_invitable)
* update 'add_user' recipe to support Devise 'confirmable' option for mongoid
* update 'seed_database' recipe to support mongoid with 'Time.now.utc' instead of 'DateTime.now'

h2. 1.4.0 April 2, 2012

Expand Down
2 changes: 1 addition & 1 deletion recipes/seed_database.rb
Expand Up @@ -30,7 +30,7 @@
if recipes.include? 'devise-confirmable'
append_file 'db/seeds.rb' do <<-FILE
puts 'SETTING UP DEFAULT USER LOGIN'
user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please', :confirmed_at => DateTime.now
user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please', :confirmed_at => Time.now.utc
puts 'New user created: ' << user.name
FILE
end
Expand Down

0 comments on commit 1413cf2

Please sign in to comment.