lib/azeroth/decorator/options.rb in azeroth-0.6.3 vs lib/azeroth/decorator/options.rb in azeroth-0.6.4

- old
+ new

@@ -11,11 +11,11 @@ # Sinclair::Options class Options < Sinclair::Options DEFAULT_OPTIONS = { as: nil, if: nil, - decorator: nil + decorator: true }.freeze with_options DEFAULT_OPTIONS # @method as @@ -60,11 +60,11 @@ # # when false, decoration happens through # #as_json call on value # # @return [TrueClass,FalseClass] - def any_decorator? - decorator != false + def decorator_defined? + decorator.is_a?(Class) end end end end