Sha256: 8590c50512aabd4721c96a9a3b1825856e1df57e9af453d39c162af73e716666
Contents?: true
Size: 329 Bytes
Versions: 1
Compression:
Stored size: 329 Bytes
Contents
<% module_namespacing do -%> class <%= class_name %>Command < Slayer::Command def call(<%= file_name %>_form: <%= file_name %>_form) fail! unless test_form.kind_of?(<%= class_name %>Form) && <%= file_name %>_form.valid? transaction do # Do your database interaction here! end pass! end end <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slayer_rails-0.3.1 | lib/generators/command/templates/command.rb |