development-mode

Stop Rails from unloading a module in development mode

I have a module in my Rails app that lives in /lib module MyModule mattr_accessor :the_variable class << self def setup yield this end end end From my environments/#{RAILS_ENV}.rb file I can then set an environment-specific value for the_variable: MyModule.setup do |my_module_config| my_module_config.the_variab...

Is there a way to determine if GWT code is running in development mode?

I'm working on a GWT application and would like to branch some logic based on whether the code is running in development mode or is live in production. For example, when the code needs to make an AJAX call we would like to set the URL depending on mode. ...