Sha256: 913197ad24d22a1202e1d623d69eeb95267527d5a600fc69a31e8a16c875b0d4

Contents?: true

Size: 393 Bytes

Versions: 10

Compression:

Stored size: 393 Bytes

Contents

module Avromatic
  module Model
    module AllowedWriterMethodsMemoization
      def self.included(base)
        base.class_attribute :virtus_object_allowed_writer_methods
        base.prepend(InstanceMethods)
      end

      module InstanceMethods
        def allowed_writer_methods
          self.class.virtus_object_allowed_writer_methods ||= super
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
avromatic-1.0.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.33.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.32.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.32.0.rc0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.31.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.30.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.29.1 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.29.0 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.28.1 lib/avromatic/model/allowed_writer_methods_memoization.rb
avromatic-0.27.0 lib/avromatic/model/allowed_writer_methods_memoization.rb