{"action":"closed","issue":{"number":20,"created_at":"2011-09-12T18:32:01Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Right now to set up sorcery, one must run these commands.\r\n\r\n```\r\nrake sorcery:bootstrap\r\nrails g sorcery_migration core remember_me\r\nrails g model user --skip-migration\r\n```\r\n\r\nIn addition to this it's also necessary to add `authorizes_with_sorcery!` to the User model and add the `remember_me` module to the config. It would be nice if those 5 steps could be broken down into this.\r\n\r\n```\r\nrails g sorcery:user remember_me\r\n```\r\n\r\nThis would generate the initializer and model class, add the `authorizes_with_sorcery!` to that class, and adds `remember_me` to the config. You can use options to customize behavior like supplying a different class name:\r\n\r\n\r\n```\r\nrails g sorcery:user remember_me --model Account\r\n```\r\n\r\nThen the class can be reflected in the config and the migration.\r\n\r\nThere can still be a single migration generator for those that want to add functionality to an existing user model.\r\n\r\n```\r\nrails g sorcery:migration password_reset\r\n```\r\n\r\nWhat do you think? BTW, great job on the gem!","comments":2,"title":"User Model Generator","updated_at":"2011-10-15T09:23:44Z","url":"https://api.github.com/repos/NoamB/sorcery/issues/20","id":1626521,"assignee":null,"milestone":null,"closed_at":"2011-10-15T09:23:44Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/8dbf316d36ff66aad4869a4fc3cfbd37?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8dbf316d36ff66aad4869a4fc3cfbd37","url":"https://api.github.com/users/ryanb","id":161,"login":"ryanb"},"html_url":"https://github.com/NoamB/sorcery/issues/20","labels":[{"name":"nice to have","url":"https://api.github.com/repos/NoamB/sorcery/labels/nice+to+have","color":"02d7e1"}],"state":"closed"},"legacy":{"number":20,"action":"closed","issue":1626521}}