module Synchro
  module Synchronize
    extend ActiveSupport::Concern

    included do
    end

    module ClassMethods
      def synchronize
        after_create :synchronize
      end

      include Synchro::Synchronize::InstanceMethods
    end

    module InstanceMethods
      def synchro_synchronize
        puts ">>>>>>>>>>>>>>>>>>> YAY! <<<<<<<<<<<<<<<<<<<<"
      end

      private :synchro_synchronize
    end
  end
end

ActiveRecord::Base.send :include, Synchro::Synchronize

module Synchro
  module Synchronize
    extend ActiveSupport::Concern

    included do
    end

    module ClassMethods
      def synchronize
        after_create :synchro_synchronize
      end

      include Synchro::Synchronize::InstanceMethods
    end

    module InstanceMethods
      def synchro_synchronize
        Rails.logger.info ">>>>>>>>>>>>>>>>>> YAY! <<<<<<<<<<<<<<<<<<"
      end

      private :synchro_synchronize
    end
  end
end

ActiveRecord::Base.send :include, Synchro::Synchronize

Fix method name; use logger instead of puts
Fix method name; use logger instead of puts
