lib/email_prefixer.rb in email_prefixer-1.1.0 vs lib/email_prefixer.rb in email_prefixer-1.2.0.pre.1
- old
+ new
@@ -1,13 +1,14 @@
require 'email_prefixer/version'
require 'email_prefixer/configuration'
require 'email_prefixer/interceptor'
-require 'email_prefixer/railtie'
+require 'email_prefixer/railtie' if defined?(Rails)
module EmailPrefixer
class << self
def configure
yield configuration
+ configuration
end
def configuration
@configuration ||= EmailPrefixer::Configuration.new
end