class PgSearchPlugin

typed: strict

Public Instance Methods

generate(root) click to toggle source
# File lib/sorbet-rails/gem_plugins/pg_search_plugin.rb, line 6
def generate(root)
  return unless @model_class.include?(::PgSearch::Model)

  model_rbi = root.create_class(
    model_class_name
  )

  model_rbi.create_extend('PgSearch::Model::ClassMethods')
end