firstdraft / draft_generators

Rails generators that help beginners learn to program.
MIT License
2 stars 3 forks source link

Use appdev_support methods in draft:account files #118

Closed jelaniwoods closed 1 year ago

jelaniwoods commented 1 year ago

Resolves #78 Resolves https://github.com/firstdraft/appdev/issues/237

Problem

Previously, the draft :account generators did not utilize the patches we wrote for Phase I / AD1 projects to enable Hash#fetch, Hash#store on session.

Solution

This PR updates the draft:account generator to use Session#fetch and Session#store instead of Session[ ]

Notes

While Session#fetch is available to use w/out patching in Rails 7, Session#store is not, so the patches are still required and handled by appdev_support.