houdini/lib/generators/email_job/templates/email_job_template.erb

13 lines
262 B
Text
Raw Normal View History

module JobTypes
class <%= name %> < EmailJob
attr_reader <%= attribs.map{|i| ":#{i}"}.join(", ") %>
def initialize(<%= attribs.join(", ") %>)<% attribs.each {|i| %>
@<%= i %> = <%= i %><% }%>
end
def perform
fail
end
end
end