Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 3886155

Browse files
committed
remove collect_other_params_as method define
1 parent 6d71be8 commit 3886155

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/react/component/class_methods.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ def param(*args)
7979

8080
def collect_other_params_as(name)
8181
validator.allow_undefined_props = true
82-
define_method(name) do
83-
@_all_others ||= self.class.validator.undefined_props(props)
84-
end
85-
8682
validator_in_lexial_scope = validator
8783
props_wrapper.define_method(name) do
8884
@_all_others ||= validator_in_lexial_scope.undefined_props(props)

0 commit comments

Comments
 (0)