lib/decanter.rb in decanter-3.4.1 vs lib/decanter.rb in decanter-3.4.2
- old
+ new
@@ -11,11 +11,11 @@
klass_or_sym.name
when Symbol
klass_or_sym.to_s.singularize.camelize
else
raise ArgumentError.new("cannot lookup decanter for #{klass_or_sym} with class #{klass_or_sym.class}")
- end.concat('Decanter')
+ end + 'Decanter'
begin
decanter_name.constantize
rescue
raise NameError.new("uninitialized constant #{decanter_name}")
end
@@ -60,6 +60,6 @@
require 'decanter/core'
require 'decanter/base'
require 'decanter/extensions'
require 'decanter/exceptions'
require 'decanter/parser'
-require 'decanter/railtie' if defined?(::Rails)
\ No newline at end of file
+require 'decanter/railtie' if defined?(::Rails)