dellcloudedge/barclamp-crowbar — pull request #191 by cloudedge (2012-09-12 15:03:01+00:00)
Title: Initialize documentation during boot [1/5]

This change moves the logic to create the
documentation objects to the model from the controller.

It was needed so that we can call it from the initializer
when the web server starts

This addresses several issues:
1) doc items are needed at start for menus
2) production mode needs to catch do updates (dev happens on every refresh)
3) better location for the code

PS: There is also a small change for digest that was included.

crowbar_framework/BDD/bdd_webrat.erl | 10 ++
crowbar_framework/BDD/crowbar.erl | 9 ++
crowbar_framework/BDD/eurl.erl | 20 +++-
crowbar_framework/BDD/features/navigation.feature | 36 +++---
.../app/controllers/application_controller.rb | 19 ++-
.../app/controllers/digest_controller.rb | 1 -
.../app/controllers/docs_controller.rb | 149 +-------------------
crowbar_framework/app/models/doc.rb | 142 +++++++++++++++++++
.../app/views/devise/sessions/new.html.haml | 2 +-
.../config/initializers/api_helpers.rb | 16 ++
.../config/initializers/documentation.rb | 19 +++
11 files changed, 249 insertions(+), 174 deletions(-)