lib/padrino-gen/generators/app.rb in padrino-gen-0.12.3 vs lib/padrino-gen/generators/app.rb in padrino-gen-0.12.4

- old
+ new

@@ -29,11 +29,12 @@ ## # Copies over the Padrino base admin application. # def create_app self.destination_root = options[:root] - @app_folder = name.gsub(/\W/, '_').underscore - @app_name = @app_folder.camelize + underscore_name = name.gsub(/\W/, '_') + @app_folder = underscore_name.underscore + @app_name = underscore_name.camelize if in_app_root? @project_name = options[:namespace].underscore.camelize @project_name = fetch_project_name(@app_folder) if @project_name.empty? if options[:destroy]