Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Insert require for spree/core/controller_helpers_ext into config/init…

…ializers/spree.rb
  • Loading branch information...
commit c4bc1de1432b0c8665850dd61a800af7fcfb9d21 1 parent 45171e3
@radar radar authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/lib/generators/spree/custom_user/custom_user_generator.rb
View
5 core/lib/generators/spree/custom_user/custom_user_generator.rb
@@ -12,6 +12,11 @@ def self.source_paths
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 'controller_helpers_ext.rb.tt', "lib/spree/core/controller_helpers_ext.rb"
+
+ insert_into_file 'config/initializers/spree.rb', :before => "# Configure Spree Preferences" do
+ %Q{require 'spree/core/controller_helpers_ext'\n}
+ end
end
def klass
Please sign in to comment.
Something went wrong with that request. Please try again.