Если Rails.env.development

Rails.env.production?  #=> true  
Rails.env.staging?     #=> false
Rails.env.development? #=> false 
Lioruby