rubygems - Rails optional gem config -


When you want to use a gem for development / testing, what do you do to other gods Do not want to use use? Currently

  requires 'redgreen' rescue load error and  

in test_helper.rb and no gem configs , But it seems like a cruel approach, although one functional one I want to do something like the following:

  config.gem "redgreen",: Optional = & gt; True  

any other suggestions? Or should I just sell those beautiful superficial gems? ...

Edit

To be clear, I'm only talking about specific gems such as red buck, which In fact, they are not used in functional codes, but there is no need to sell them except to avoid the conditional requirement of coding only in process .

I gave the same answer

ex>

then

bundle - together -N V = Scott


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -