Book Image

Redmine Plugin Extension and Development

By : Alex Bevilacqua
Book Image

Redmine Plugin Extension and Development

By: Alex Bevilacqua

Overview of this book

Table of Contents (16 chapters)
Redmine Plugin Extension and Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Registering our model


Our model is now capable of integrating with the Redmine activity stream; however, Redmine is still unaware of our model in this context.

In order to have our model's events actually represented in the activity stream, our plugin initialization file needs to be updated.

Redmine::Activity.register :kb_articles

The preceding entry needs to be added to our init.rb file after the Redmine::Plugin.register block.

Now that we have registered our model with Redmine, the implementation of acts_as_activity_provider will produce results in a project's activity stream.