Sha256: c549e0234ca6e2fbb3d6ca928500bfa3e8080b72030d6e2080350c7a54938fc0
Contents?: true
Size: 614 Bytes
Versions: 16
Compression:
Stored size: 614 Bytes
Contents
# Generates the necessary files for a basic notifier. # # Example: # rake generate:notifier name=welcome_email # generates the following files: # app/notifiers/welcome_email.rb # app/notifiers/templates/welcome_email/text.erb # app/notifiers/templates/welcome_email/html.erb # test/unit/welcome_email_spec.rb # => if using RSpec # test/unit/welcome_email_test.rb # => if using Test::Unit::TestCase class NotifierGenerator < Genosaurus require_param :name def file_name # :nodoc: param(:name).underscore.downcase end def class_name # :nodoc: param(:name).camelcase end end
Version data entries
16 entries across 16 versions & 2 rubygems