added Rails.env.development? to get_roles