lib/fmrest/spyke/model/associations.rb in fmrest-spyke-0.25.0.rc1 vs lib/fmrest/spyke/model/associations.rb in fmrest-spyke-0.26.0.rc1

- old
+ new

@@ -14,15 +14,11 @@ included do # Keep track of portal options by their FM keys as we could need it # to parse the portalData JSON in SpykeFormatter # # TODO: Replace this with options in PortalBuilder - class_attribute :portal_options, instance_accessor: false, instance_predicate: false - - # class_attribute supports a :default option since ActiveSupport 5.2, - # but we want to support previous versions too so we set the default - # manually instead - self.portal_options = {}.freeze + class_attribute :portal_options, instance_accessor: false, instance_predicate: false, + default: {}.freeze class << self; private :portal_options=; end set_callback :save, :after, :remove_marked_for_destruction end