Sha256: 2e4f8ae2ef555d4683071673b02b3aa9dc9713b532f677a258276f1ac1bc0dd5
Contents?: true
Size: 976 Bytes
Versions: 2
Compression:
Stored size: 976 Bytes
Contents
module NotifyUser class NotificationGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) class_option :skip, default: true def generate_notification template "notification.rb.erb", "app/notifications/#{name.underscore}.rb" puts "If you wish this notification to be unsubscribable add it to the unsubscribable_notifications array in the initializer" end def generate_view_scaffolds template "email_template.html.erb.erb", "app/views/notify_user/#{name.underscore}/action_mailer/notification.html.erb" template "mobile_sdk_template.html.erb.erb", "app/views/notify_user/#{name.underscore}/mobile_sdk/notification.html.erb" template "mobile_sdk_template.html.erb.erb", "app/views/notify_user/#{name.underscore}/mobile_sdk/aggregate_notifications.html.erb" template "email_layout_template.html.erb.erb", "app/views/notify_user/layouts/action_mailer.html.erb" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notify_user-0.3.2 | lib/generators/notify_user/notification/notification_generator.rb |
notify_user-0.3.1 | lib/generators/notify_user/notification/notification_generator.rb |