You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
When I create a namespace using nifty:scaffold without arguments, the only attribute is :name (even if "name" isn't an attribute)
I'd make a pull request for this but I have forked nifty-generators, quite a bit and I don't really know if it's possible to have 2 forks of the same repo. Either way the fix is pretty easy.
go into lib/generators/nifty/scaffold/scaffold_generator.rb (line 296)
Change to this:
def model_exists?
File.exist?( destination_path("app/models/#{singular_name}.rb")) || File.exist?( destination_path("app/models/#{instance_name}.rb"))
end
I think people rarely namespace the models so you might not need:
When I create a namespace using nifty:scaffold without arguments, the only attribute is :name (even if "name" isn't an attribute)
I'd make a pull request for this but I have forked nifty-generators, quite a bit and I don't really know if it's possible to have 2 forks of the same repo. Either way the fix is pretty easy.
go into lib/generators/nifty/scaffold/scaffold_generator.rb (line 296)
Change to this:
I think people rarely namespace the models so you might not need:
File.exist?( destination_path("app/models/#{singular_name}.rb"))
The text was updated successfully, but these errors were encountered: