lib/decanter.rb in decanter-0.7.1 vs lib/decanter.rb in decanter-0.7.2
- old
+ new
@@ -30,16 +30,25 @@
raise ArgumentError.new("#{constant.name} is not a decanter")
end
constant
end
+
+ def configuration
+ @config ||= Decanter::Configuration.new
+ end
+
+ def config
+ yield configuration
+ end
end
ActiveSupport.run_load_hooks(:decanter, self)
end
require 'decanter/version'
-require 'decanter/base'
+require 'decanter/configuration'
require 'decanter/core'
+require 'decanter/base'
require 'decanter/extensions'
-require 'decanter/value_parser'
+require 'decanter/parser'
require 'decanter/railtie' if defined?(::Rails)