Sha256: c29930f9a56b04e9d01428166fa1d3383bf14d3aa3f1b187d414c25fff2a4513
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
require "rails" require "sorbet-rails/custom_finder_methods" class SorbetRails::Railtie < Rails::Railtie railtie_name "sorbet-rails" rake_tasks do path = File.expand_path(__dir__) Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f } end initializer "sorbet-rails.initialize" do ActiveSupport.on_load(:active_record) do ActiveRecord::Base.extend SorbetRails::CustomFinderMethods ActiveRecord::Relation.include SorbetRails::CustomFinderMethods end end end
Version data entries
5 entries across 5 versions & 1 rubygems