Permalink
Browse files

Use append_file rather than insert_into file for authentication_helpe…

…rs hook

It's not important that this is done before configuration, and therefore can go anywhere in the file

h/t beneggget
  • Loading branch information...
1 parent edcc16b commit cfc4a345924b6105ed50dc5a9fb6e35e8fac6d08 @radar radar committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/lib/generators/spree/custom_user/custom_user_generator.rb
@@ -14,7 +14,7 @@ def generate
template 'migration.rb.tt', "db/migrate/#{Time.now.strftime("%Y%m%d%H%m%S")}_add_spree_fields_to_custom_user_table.rb"
template 'authentication_helpers.rb.tt', "lib/spree/authentication_helpers.rb"
- insert_into_file 'config/initializers/spree.rb', :before => "# Configure Spree Preferences" do
+ append_file 'config/initializers/spree.rb' do
%Q{require 'spree/authentication_helpers'\n}
end
end

0 comments on commit cfc4a34

Please sign in to comment.