Sha256: 573bd8b5481c728220a9310a527ac89731cf7d7221fab8b0e8622d1188255320

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

module SchemaComments
  module Schema
    def self.prepended(mod)
      mod.singleton_class.prepend(ClassMethods)
    end

    module ClassMethods
      def define(*args, &block)
        SchemaComments::SchemaComment.yaml_access do
          super(*args, &block)
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
schema_comments-0.5.0 lib/schema_comments/schema.rb
schema_comments-0.4.3 lib/schema_comments/schema.rb
schema_comments-0.4.2 lib/schema_comments/schema.rb
schema_comments-0.4.1 lib/schema_comments/schema.rb