active_template.rb in active_leonardo-0.7.0 vs active_template.rb in active_leonardo-0.8.0

- old
+ new

@@ -73,15 +73,15 @@ gem 'launchy', group: :test gem 'database_cleaner', group: :test gem 'factory_girl_rails', group: :test end -authentication = test_mode || yes?("Authentication ?") -model_name = authorization = nil +authentication = test_mode || yes?("Authentication ?") +model_name = authorization = nil if authentication - default_model_name = "User" - model_name = test_mode ? "" : ask(" Insert model name: [#{default_model_name}]") + default_model_name = "User" + model_name = test_mode ? "" : ask(" Insert model name: [#{default_model_name}]") if model_name.empty? || model_name == 'y' model_name = default_model_name else model_name = model_name.classify stdout = <<-REMEM.gsub(/^ /, '') @@ -110,10 +110,10 @@ gem 'inherited_resources' if /^5/ === rails_version gem 'formtastic', git: 'https://github.com/justinfrench/formtastic.git' else gem 'formtastic' -end +end dashboard_root = test_mode || yes?("Would you use dashboard as root ? (recommended)") home = test_mode || yes?("Ok. Would you create home controller as root ?") unless dashboard_root if test_mode || yes?("Bundle install ?") \ No newline at end of file