Class: ActsAsNotificable::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActsAsNotificable::Generators::InstallGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/acts_as_notificable/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_notification_migration ⇒ Object
13 14 15 |
# File 'lib/generators/acts_as_notificable/install_generator.rb', line 13 def copy_notification_migration migration_template "migration.rb", "db/migrate/create_notifications_table.rb" end |
#copy_notification_model ⇒ Object
9 10 11 |
# File 'lib/generators/acts_as_notificable/install_generator.rb', line 9 def copy_notification_model copy_file "notification.rb", "app/models/notification.rb" end |