Skip to content

Commit

Permalink
Schema hit initialize when extended
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Apr 29, 2023
1 parent 140830f commit ff0bb9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/jsi/schema.rb
Expand Up @@ -173,6 +173,11 @@ def new_schema_module(schema_content, **kw)
end

class << self
def extended(o)
super
o.send(:jsi_schema_initialize)
end

# an application-wide default metaschema set by {default_metaschema=}, used by {JSI.new_schema}
#
# @return [nil, #new_schema]
Expand Down

0 comments on commit ff0bb9a

Please sign in to comment.