lib/padrino-gen/generators/model.rb in padrino-gen-0.9.14 vs lib/padrino-gen/generators/model.rb in padrino-gen-0.9.15
- old
+ new
@@ -46,10 +46,10 @@
migration_name = "create_#{name.pluralize.underscore}"
create_model_file(name, :fields => fields, :app => app)
generate_model_test(name) if test?
create_model_migration(migration_name, name, fields) unless options[:skip_migration]
else
- say "You are not at the root of a Padrino application! (config/boot.rb not found)" and return unless in_app_root?
+ say "You are not at the root of a Padrino application! (config/boot.rb not found)"
end
end
end # Model
end # Generators
end # Padrino
\ No newline at end of file