blob: 2458762a9d55adab7c95a385e71566fe62763384 (
plain) (
tree)
|
|
module Erb
module Generators
class MailerGenerator < Base
argument :actions, :type => :array, :default => []
desc <<DESC
Description:
Create Template engine files for mailer generator.
DESC
def create_view_files
actions.each do |action|
@action, @path = action, File.join(file_path, action)
template "view.erb", File.join("app", "views", "#{@path}.erb")
end
end
end
end
end
|