From 060e06daa065f02b811dfe12850b101a62c12c8d Mon Sep 17 00:00:00 2001 From: jessib <jessib@riseup.net> Date: Tue, 27 Aug 2013 12:38:16 -0700 Subject: Not ideal way to do it, but was proving complicated to have a config file specify which gems for which environments. Here, we have the billing gem included for the development and test environments only, hardcoded in the Gemfile. Then we show the links to billing based on a config file setting. The setting itself could be used to specify different types of billing, but isn't yet. --- app/helpers/application_helper.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/helpers') diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cdc34ea..1e79990 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -37,9 +37,4 @@ module ApplicationHelper html_escape(msg).gsub('[b]', '<b>').gsub('[/b]', '</b>').html_safe end - def engine_enabled(name) - # to disable engine, comment it out in Gemfile (and make sure to re-run bundle install) - Rails::Application::Railties.engines.any? {|eng| eng.class.to_s == "#{name}::Engine"} - end - end -- cgit v1.2.3