Sha256: a68c4528b04b0af08255d5450aad2a08c01fd0453c1312d1cf80ea4f9ca73725
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
#Copyright (c) 2008 Peter H. Boling of 9thBit LLC #Released under the MIT license module NinthBit module CustomEnvironments def self.included(base) base.extend(ClassMethods) base.cattr_accessor :local_environments base.local_environments = %w( development test ) end module ClassMethods def consider_local? local_environments.include?(defined?(Rails) ? Rails.env : RAILS_ENV) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pboling-sanitize_email-0.3.2 | lib/sanitize_email/custom_environments.rb |