Sha256: 3844c55bf4f5c9c6ddd35c21948bb2bc177439d2e4409d998b0f886c71ea9759
Contents?: true
Size: 470 Bytes
Versions: 3
Compression:
Stored size: 470 Bytes
Contents
module Controll module Generators class NotifierGenerator < ::Rails::Generators::NamedBase desc 'Generates a Notifier' def main_flow template 'notifier.tt', "app/controll/notifiers/#{file_name}.rb" end protected def parent_class name.include?('::') ? "::Controll::Notify::#{parent_class_name}" : parent_class_name end def parent_class_name 'Typed' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
controll-0.3.2 | lib/generators/controll/notifier_generator.rb |
controll-0.3.1 | lib/generators/controll/notifier_generator.rb |
controll-0.3.0 | lib/generators/controll/notifier_generator.rb |