Displaying 1 result from an estimated 1 matches for "duplicatee".
Did you mean:
duplicate
2006 May 16
4
Model class conditional on ENV["RAILS_ENV"] == "test"
...ment).
I would like to do this the preferred "rails" way.
I''ve tried a few solutions using mixins and also using a conditional
expression to control the class definition, but anything I come up with
ether doesn''t work or looks some shade of ugly. (The worst being to
duplicatee the class and wrap each definition in conditional code).
Any ideas?
Thanks in advance,
Martin
--
Posted via http://www.ruby-forum.com/.