Hi all,
I’d like to run a before_filter only in the developpment environment.
how do I detect the current enviroment?
Cheersm
Douglas
Hi all,
I’d like to run a before_filter only in the developpment environment.
how do I detect the current enviroment?
Cheersm
Douglas
you might try,
ENV[“RAILS_ENV”]
or just
RAILS_ENV
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs