Displaying 1 result from an estimated 1 matches for "class_with_cod".
Did you mean:
class_with_code
2006 May 16
4
Model class conditional on ENV["RAILS_ENV"] == "test"
I am trying to setup a model class that I want to inherit from
ActveRecord when in the test mode, and not inherit when in production
and/or development mode. The reason for this is so that I can use
fixtures to test that the logic in the model is working correctly, but I
don''t want the database table around during production (and normal
development).
I would like to do this the