lib/generators/notification_renderer/install_generator.rb in notification-renderer-2.0.0 vs lib/generators/notification_renderer/install_generator.rb in notification-renderer-3.0.2

- old
+ new

@@ -12,10 +12,11 @@ def self.next_migration_number(dirname) if ActiveRecord::Base.timestamped_migrations Time.now.utc.strftime('%Y%m%d%H%M%S') else - format('%.3d', current_migration_number(dirname) + 1) + format('%<migration_number>.3d', + migration_number: current_migration_number(dirname) + 1) end end def create_initializer template 'initializer.rb', 'config/initializers/notification_renderer.rb'