lib/halbuilder/key_format.rb in halbuilder-0.1.1 vs lib/halbuilder/key_format.rb in halbuilder-0.1.2
- old
+ new
@@ -2,10 +2,12 @@
module Halbuilder::KeyFormat
class << self
def setup
::Jbuilder.deep_format_keys(true)
- ::Jbuilder.ignore_nil(true)
+
+ # TODO: no good way to ignore in attributes, but keep in zoomed-embeds
+ # ::Jbuilder.ignore_nil(true)
::Jbuilder.key_format ->(key) do
key_format = Halbuilder.configuration.key_format
link_format = Halbuilder.configuration.link_format
link_key = Halbuilder.configuration.link_key