mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
10 lines
288 B
Plaintext
10 lines
288 B
Plaintext
Description:
|
|
Generates a serializer for the given resource with tests.
|
|
|
|
Example:
|
|
`rails generate serializer Account name created_at`
|
|
|
|
For TestUnit it creates:
|
|
Serializer: app/serializers/account_serializer.rb
|
|
TestUnit: test/unit/account_serializer_test.rb
|