Sha256: 22a34439233ffba6eee7cf1892a2ce908095771cd0fb7b46f8210e7b488f5381
Contents?: true
Size: 469 Bytes
Versions: 34
Compression:
Stored size: 469 Bytes
Contents
# typed: strict class PgSearchPlugin < SorbetRails::ModelPlugins::Base # If you include PgSearch::Model, the class implicitly gets methods from # PgSearch::Model::ClassMethods. sig { override.params(root: Parlour::RbiGenerator::Namespace).void } 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 end
Version data entries
34 entries across 34 versions & 1 rubygems