app/helpers/governor_helper.rb in governor-0.4.0 vs app/helpers/governor_helper.rb in governor-0.5.0

- old
+ new

@@ -1,9 +1,5 @@ module GovernorHelper - Governor::PluginManager.plugins.map{|p| p.helpers }.flatten.each do |mod| - include mod.constantize # FIXME this feels pretty dirty, there has to be a better way - end - def render_plugin_partial(where, options = {}) output = '' Governor::PluginManager.plugins.map{|p| p.partial_for(where) }.compact.each do |partial| opts = options.merge( {:partial => "governor/#{partial}"} ) output << render(opts)