rubygems_generators/application_generator/templates/bin in rubigen-1.1.1 vs rubygems_generators/application_generator/templates/bin in rubigen-1.2.0
- old
+ new
@@ -6,7 +6,10 @@
puts "#{File.basename($0)} #{<%= app_model_name %>::VERSION::STRING}"
exit(0)
end
require 'rubigen/scripts/generate'
-RubiGen::Base.use_application_sources! <%= name.to_sym.inspect %>
+source = RubiGen::PathSource.new(:application,
+ File.join(File.dirname(__FILE__), "../app_generators"))
+RubiGen::Base.reset_sources
+RubiGen::Base.append_sources source
RubiGen::Scripts::Generate.new.run(ARGV, :generator => '<%= name %>')