recipes/devise_recipe.rb in playmo-0.1.2 vs recipes/devise_recipe.rb in playmo-0.1.3
- old
+ new
@@ -121,11 +121,11 @@
# Generate Devise stuff
generate "devise:install"
generate "devise User"
generate "devise:views"
- after_install do
+ install do
# Add sign_up/login links into layout
add_layout_links
# Process Devise views to choosen markup
process_views
@@ -156,10 +156,10 @@
CONTENT
end
# Create default user
append_to_file 'db/seeds.rb' do
- <<-CONTENT.gsub(/^ {12}/, '')
+ <<-CONTENT.gsub(/^ {8}/, '')
user = User.create!(
:email => 'johndoe@example.com',
:password => 'secret',
:password_confirmation => 'secret'
)
\ No newline at end of file