Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
added a temporyary fix to make the installer work a bit more, by cehc…
Browse files Browse the repository at this point in the history
…king to see if the db exists before trying to register the content plugin
  • Loading branch information
Adam Dill committed Feb 16, 2009
1 parent 3b7c5ee commit f4c436e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions vendor/plugins/ansuz_content_section/init.rb
@@ -1,4 +1,7 @@
Ansuz::PluginManagerInstance.register_plugin(Ansuz::JAdams::ContentSection)
Ansuz::PluginManagerInstance.add_gem_dependency("RedCloth", :lib => "redcloth")
Ansuz::PluginManagerInstance.add_gem_dependency("BlueCloth", :lib => "bluecloth")
Ansuz::PluginManagerInstance.register_page_type("Content Page", ["Ansuz::JAdams::ContentSection"])
# FIXME: this unless statement needs to be removed, but without it you cant do rake gems:install, rake db:create:all or run the installer
unless !ActiveRecord::Base.configurations.blank?
Ansuz::PluginManagerInstance.register_plugin(Ansuz::JAdams::ContentSection)
end
Ansuz::PluginManagerInstance.add_gem_dependency("RedCloth", :lib => "redcloth")
Ansuz::PluginManagerInstance.add_gem_dependency("BlueCloth", :lib => "bluecloth")
Ansuz::PluginManagerInstance.register_page_type("Content Page", ["Ansuz::JAdams::ContentSection"])

0 comments on commit f4c436e

Please sign in to comment.