lib/iron_bank/actions/generate.rb in iron_bank-1.0.4 vs lib/iron_bank/actions/generate.rb in iron_bank-2.0.0

- old
+ new

@@ -8,12 +8,20 @@ class Generate < Action private def params { - objects: args.fetch(:objects).map(&:deep_camelize), - type: args.fetch(:type) + objects: objects, + type: type } + end + + def objects + IronBank::Object.new(args.fetch(:objects)).deep_camelize(type: :upper) + end + + def type + IronBank::Utils.camelize(args.fetch(:type), type: :upper) end end end end