Skip to content

Commit aa512e3

Browse files
committed
Remove ruby2_keywords
1 parent 6a330de commit aa512e3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

lib/rom/sql/schema/index_dsl.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ class IndexDSL # < BasicObject
1414
attr_reader :registry
1515

1616
# @api private
17-
def initialize(*, &block)
17+
def initialize(*, **, &block)
1818
super
1919

2020
@registry = []
2121

2222
instance_exec(&block)
2323
end
24-
ruby2_keywords(:initialize) if respond_to?(:ruby2_keywords, true)
2524

2625
# @api public
2726
def index(*attributes, **options)

spec/support/helpers.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ def define_attribute(name, id, **opts)
2222
ROM::SQL::Attribute.new(type.meta(opts), name: name)
2323
end
2424

25-
def build_assoc(type, *args)
25+
def build_assoc(type, *args, **kwargs)
2626
klass = ROM::Inflector.classify(type)
27-
definition = ROM::Associations::Definitions.const_get(klass).new(*args)
27+
definition = ROM::Associations::Definitions.const_get(klass).new(*args, **kwargs)
2828
ROM::SQL::Associations.const_get(definition.type).new(definition, relations)
2929
end
30-
ruby2_keywords(:build_assoc) if respond_to?(:ruby2_keywords, true)
3130

3231
def attributes(schema)
3332
schema.each_with_object({}) do |(key, type), acc|

0 commit comments

Comments
 (0)