Fix expose and rails_env