Closed hayduke19us closed 9 years ago
I noticed that the rake schema task was throwing a NoMethodError. In lib/tasks/schema.rb the Pliny::Commands::Generator::Schema.new(nil).rebuild.
rake schema
The error was occurring because the private method in the Base class #normalize_name was trying to #underscore nil.
#normalize_name
#underscore
I added a ternary in the initialization for the name attribute.
Basically Don't normalize if name is nil!
Thanks @hayduke19us! Great tests as well.
I noticed that the
rake schema
task was throwing a NoMethodError. In lib/tasks/schema.rb the Pliny::Commands::Generator::Schema.new(nil).rebuild.The error was occurring because the private method in the Base class
#normalize_name
was trying to#underscore
nil.I added a ternary in the initialization for the name attribute.
Basically Don't normalize if name is nil!