Skip to content

Commit

Permalink
Added overrides load for install generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Trung Le虃 committed Dec 4, 2011
1 parent 11caf6b commit 9eae36b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/generators/spree/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ def configure_application
application <<-APP
config.to_prepare do
#loads application's model / class decorators
# Load application's model / class decorators
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
# Load application's view overrides
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/*.rb")) do |c|
Rails.configuration.cache_classes ? require(c) : load(c)
end
end
APP

Expand Down

0 comments on commit 9eae36b

Please sign in to comment.