lib/hanami/model/sql/entity/schema.rb in hanami-model-1.3.2 vs lib/hanami/model/sql/entity/schema.rb in hanami-model-1.3.3

- old
+ new

@@ -1,9 +1,11 @@ -require 'hanami/entity/schema' -require 'hanami/model/types' -require 'hanami/model/association' +# frozen_string_literal: true +require "hanami/entity/schema" +require "hanami/model/types" +require "hanami/model/association" + module Hanami module Model module Sql module Entity # SQL Entity schema @@ -50,10 +52,10 @@ schema.call(attributes) end # @since 1.0.1 # @api private - alias [] call + alias_method :[], :call # Check if the attribute is known # # @param name [Symbol] the attribute name #