require 'softwear/auth/standard_model' require 'softwear/auth/stubbed_model' module Softwear module Auth if Rails.env.development? && ENV['AUTH_SERVER'].blank? class Model < StubbedModel end else class Model < StandardModel end end end end