lib/phoenix-cli/cli.rb in phoenix-cli-0.1.1 vs lib/phoenix-cli/cli.rb in phoenix-cli-0.1.2

- old
+ new

@@ -56,10 +56,10 @@ if ['scaffold', 'html', 'resource'].include? generator exec("mix phoenix.gen.html #{resource_camelized} #{resource_pluralized} #{attributes.join(' ')}") end if ['json', 'api'].include? generator - exec("mix phoenix.json #{resource_camelized} #{resource_pluralized} #{attributes.join(' ')}") + exec("mix phoenix.gen.json #{resource_camelized} #{resource_pluralized} #{attributes.join(' ')}") end if ['channel', 'presence', 'secret', 'digest'].include? generator exec("mix phoenix.gen.#{generator} #{attributes.join(' ')}") end