lib/generators/snfoil/all/USAGE
Description:
Creates a Scaffold for SnFoil based around a model
Arguments:
model: *required* The name of the model
Options:
skip_model: Skip the creation of a model. default: false
type: The type of controller to create (base, api). default: base
Example:
rails generate snfoil:all User
This will create:
app/models/user.rb
app/policies/user_policy.rb
app/searchers/users_searcher.rb
app/contexts/user_context.rb
app/jsonapi_serializers/user_jsonapi_serializer.rb
app/jsonapi_deserializers/user_jsonapi_deserializer.rb
app/controllers/users_controller.rb