Sha256: 30ced45a64914bfcb83adde3b46d039301488a9cb757e05f6d80f1445a12c08b
Contents?: true
Size: 835 Bytes
Versions: 21
Compression:
Stored size: 835 Bytes
Contents
Description: The adaptor generator creates stubs for a new adaptor. The generator takes an adaptor name. The adaptor name may be given in CamelCase or under_score and should not be suffixed with 'Adaptor'. To create an adaptor within a module, specify the adaptor name as 'module/adaptor'. The generator creates an adaptor class in app/adaptors and a functional test suite in test/functional. Example: ./script/generate adaptor AddClient Add client adaptor. Adaptor: app/adaptors/add_client_adaptor.rb Test: test/functional/add_client_adaptor_test.rb Modules Example: ./script/generate adaptor 'admin/add_client' Add client adaptor. Adaptor: app/adaptors/admin/add_client_adaptor.rb Test: test/functional/admin/add_client_adaptor.rb
Version data entries
21 entries across 21 versions & 1 rubygems